Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 108 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 185.7 kB / 23.71 MB, free: 4.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 252.5 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 47.92 kB / 370.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2527, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00425/0.257, allocations: 2.838 MB / 426 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2582, allocations: 0.7477 MB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2583, allocations: 4 kB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.2585, allocations: 71.42 kB / 426.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.2588, allocations: 95.19 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.2591, allocations: 111.7 kB / 427 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.2595, allocations: 386.6 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2597, allocations: 95.34 kB / 427.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002451/0.2599, allocations: 163.4 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.2601, allocations: 163.2 kB / 427.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.2602, allocations: 32 kB / 427.8 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.2603, allocations: 32 kB / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.304e-05/0.2603, allocations: 83.67 kB / 427.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.2605, allocations: 167.1 kB / 428.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.2609, allocations: 403.5 kB / 428.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2609, allocations: 0 / 428.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2609, allocations: 0 / 428.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2609, allocations: 0 / 428.5 MB, free: 9.32 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001192/0.2621, allocations: 0.5793 MB / 429.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.2622, allocations: 11.97 kB / 429.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.889e-05/0.2623, allocations: 40.7 kB / 429.1 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.2626, allocations: 213.9 kB / 429.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2626, allocations: 25.03 kB / 429.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.2627, allocations: 28.38 kB / 429.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.2633, allocations: 302.3 kB / 429.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2634, allocations: 0 / 429.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.2634, allocations: 12 kB / 429.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2634, allocations: 8 kB / 429.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/0.2641, allocations: 250.5 kB / 429.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.2659, allocations: 1.037 MB / 431 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.2663, allocations: 146.5 kB / 431.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.2665, allocations: 68.81 kB / 431.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.2665, allocations: 7.891 kB / 431.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.2665, allocations: 38.56 kB / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.2665, allocations: 0 / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00221/0.2687, allocations: 0.5923 MB / 431.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.2688, allocations: 55.41 kB / 431.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.2691, allocations: 261.8 kB / 432.1 MB, free: 5.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.2691, allocations: 33.7 kB / 432.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.2693, allocations: 224.1 kB / 432.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.879e-05/0.2693, allocations: 91.25 kB / 432.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.2695, allocations: 61.66 kB / 432.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2696, allocations: 334.8 kB / 432.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.2699, allocations: 95.92 kB / 432.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.2703, allocations: 194.9 kB / 433.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006755/0.271, allocations: 302.3 kB / 433.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.271, allocations: 3.938 kB / 433.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009123/0.2719, allocations: 389.5 kB / 433.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2719, allocations: 12 kB / 433.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2719, allocations: 0 / 433.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.2722, allocations: 61.66 kB / 433.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003454/0.2725, allocations: 75.89 kB / 434 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.2748, allocations: 2.627 MB / 436.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.2751, allocations: 24.05 kB / 436.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.2751, allocations: 15.98 kB / 436.6 MB, free: 0.6094 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.2752, allocations: 153.7 kB / 436.8 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.2753, allocations: 27.81 kB / 436.8 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.851e-05/0.2754, allocations: 34.27 kB / 436.8 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.2754, allocations: 0 / 436.8 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2754, allocations: 0 / 436.8 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2754, allocations: 8 kB / 436.8 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.2758, allocations: 312.4 kB / 437.1 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2758, allocations: 0 / 437.1 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.276, allocations: 40.02 kB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001566/0.2762, allocations: 49.62 kB / 437.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2762, allocations: 8 kB / 437.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.2783, allocations: 2.634 MB / 439.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2783, allocations: 8.156 kB / 439.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007727/0.2791, allocations: 366.9 kB / 440.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.2792, allocations: 23.75 kB / 440.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.2792, allocations: 15.98 kB / 440.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.2794, allocations: 15.98 kB / 440.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.2795, allocations: 15.97 kB / 440.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2795, allocations: 7.984 kB / 440.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.2797, allocations: 185.2 kB / 440.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2797, allocations: 3.938 kB / 440.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.2801, allocations: 72 kB / 440.6 MB, free: 12.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001209/0.2802, allocations: 103.2 kB / 440.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009876/0.2812, allocations: 473 kB / 441.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2812, allocations: 0 / 441.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.2817, allocations: 341.2 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.2821, allocations: 32.27 kB / 441.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.2832, allocations: 0.5538 MB / 442.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.2836, allocations: 0.7714 MB / 442.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.2837, allocations: 30.28 kB / 442.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.142e-05/0.2838, allocations: 19.44 kB / 442.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2838, allocations: 0 / 442.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of Templates: time 0.007716/0.2915, allocations: 2.929 MB / 445.8 MB, free: 7.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.584229371510446]