Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 73.41 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 162.5 kB / 24.5 MB, free: 3.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 177.2 MB / 204.9 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 58 kB / 325.6 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08521/0.08681, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004906/0.09172, allocations: 3.227 MB / 382.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.09344, allocations: 0.9231 MB / 383.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.09361, allocations: 11.94 kB / 383.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.09387, allocations: 95.09 kB / 383.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004282/0.0943, allocations: 174.6 kB / 383.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.09466, allocations: 167.8 kB / 383.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000679/0.09534, allocations: 0.6425 MB / 384.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.09559, allocations: 134 kB / 384.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.09587, allocations: 247 kB / 384.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.09619, allocations: 238.7 kB / 384.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.34e-05/0.09628, allocations: 52 kB / 384.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.711e-05/0.09636, allocations: 52 kB / 384.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.09649, allocations: 127.5 kB / 385 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.09673, allocations: 234.8 kB / 385.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007065/0.09743, allocations: 0.6417 MB / 385.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.09744, allocations: 0 / 385.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09744, allocations: 4 kB / 385.9 MB, free: 8.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.09745, allocations: 0 / 385.9 MB, free: 8.684 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001553/0.099, allocations: 0.7973 MB / 386.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.09904, allocations: 8.031 kB / 386.7 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.09915, allocations: 68.52 kB / 386.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.09965, allocations: 298 kB / 387 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.0997, allocations: 37.69 kB / 387.1 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.09977, allocations: 48.38 kB / 387.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008455/0.1006, allocations: 442.4 kB / 387.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1006, allocations: 0 / 387.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.1007, allocations: 24 kB / 387.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.1007, allocations: 12 kB / 387.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008968/0.1016, allocations: 385 kB / 387.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.104, allocations: 1.263 MB / 389.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/0.1047, allocations: 300.8 kB / 389.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.1051, allocations: 161.4 kB / 389.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.1051, allocations: 8.328 kB / 389.7 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1052, allocations: 34.89 kB / 389.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.673e-06/0.1052, allocations: 0 / 389.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.003416/0.1086, allocations: 1.199 MB / 390.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.1086, allocations: 59.91 kB / 391 MB, free: 3.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/0.1091, allocations: 405.5 kB / 391.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.1091, allocations: 37.64 kB / 391.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.1093, allocations: 320.6 kB / 391.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.1095, allocations: 198.3 kB / 391.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.1097, allocations: 110.3 kB / 392 MB, free: 2.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1098, allocations: 354.8 kB / 392.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.1103, allocations: 181.2 kB / 392.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.1109, allocations: 307 kB / 392.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009748/0.1118, allocations: 496.2 kB / 393.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1118, allocations: 0 / 393.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001536/0.1134, allocations: 0.729 MB / 394 MB, free: 180 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1134, allocations: 15.88 kB / 394.1 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1134, allocations: 0 / 394.1 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.1139, allocations: 192.4 kB / 394.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004933/0.1144, allocations: 107.9 kB / 394.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004437/0.1189, allocations: 3.978 MB / 398.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.1193, allocations: 35.88 kB / 398.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.1193, allocations: 24 kB / 398.4 MB, free: 11.62 MB / 366.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 (58): * Single equations (assignments): 56 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.1196, allocations: 186.3 kB / 398.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.391e-05/0.1197, allocations: 43.72 kB / 398.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.1198, allocations: 61.03 kB / 398.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1198, allocations: 8.062 kB / 398.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.1198, allocations: 4 kB / 398.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.1198, allocations: 7.922 kB / 398.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.1222, allocations: 1.141 MB / 399.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.1222, allocations: 4 kB / 399.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003175/0.1225, allocations: 63.89 kB / 399.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000436/0.1229, allocations: 157.7 kB / 400.1 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.123, allocations: 19.98 kB / 400.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003979/0.1269, allocations: 3.819 MB / 403.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1269, allocations: 0 / 403.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.1283, allocations: 0.6928 MB / 404.6 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.73e-05/0.1284, allocations: 47.67 kB / 404.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.1285, allocations: 15.98 kB / 404.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.1288, allocations: 15.98 kB / 404.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.1289, allocations: 56.28 kB / 404.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.1289, allocations: 20 kB / 404.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003161/0.1292, allocations: 271.2 kB / 405 MB, free: 4.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1292, allocations: 0 / 405 MB, free: 4.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007256/0.13, allocations: 156 kB / 405.2 MB, free: 4.559 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001306/0.1301, allocations: 107.2 kB / 405.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1317, allocations: 0.7584 MB / 406 MB, free: 3.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1317, allocations: 4.25 kB / 406 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008766/0.1325, allocations: 0.5077 MB / 406.5 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.133, allocations: 45.42 kB / 406.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.1348, allocations: 0.9715 MB / 407.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.1351, allocations: 259 kB / 407.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001673/0.1353, allocations: 44.25 kB / 407.8 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.841e-05/0.1353, allocations: 32.5 kB / 407.9 MB, free: 1.695 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1353, allocations: 0 / 407.9 MB, free: 1.695 MB / 366.1 MB Notification: Performance of Templates: time 0.01143/0.1468, allocations: 5.14 MB / 413 MB, free: 12.6 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.426599086960778]