Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.001052/0.001052, allocations: 87.58 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001323/0.001323, allocations: 165 kB / 24.56 MB, free: 4 kB / 18.57 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 0.9964/0.9964, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2653/0.2653, allocations: 32.8 MB / 294.3 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.562e-05/2.728e-05, allocations: 9.344 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002778/0.002806, allocations: 2.7 MB / 378.7 MB, free: 1.969 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.003812, allocations: 0.7788 MB / 379.5 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.003934, allocations: 4 kB / 379.5 MB, free: 1.18 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.004131, allocations: 67.31 kB / 379.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.004311, allocations: 115 kB / 379.7 MB, free: 1 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.004518, allocations: 115.8 kB / 379.8 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.00482, allocations: 430.3 kB / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.005003, allocations: 95.84 kB / 380.3 MB, free: 376 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.005214, allocations: 235.5 kB / 380.5 MB, free: 140 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.005345, allocations: 123.6 kB / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.89e-05/0.005404, allocations: 36.05 kB / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.852e-05/0.005442, allocations: 32 kB / 380.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.539e-05/0.005497, allocations: 87.61 kB / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.777e-05/0.005585, allocations: 111.8 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.005849, allocations: 274.9 kB / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.005851, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.005852, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.005857, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0006746/0.006532, allocations: 0.6949 MB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.00657, allocations: 15.98 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.006655, allocations: 72.66 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.006887, allocations: 227.4 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.006906, allocations: 25.38 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.006939, allocations: 32.38 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.007311, allocations: 311 kB / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.007322, allocations: 4 kB / 382.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.007345, allocations: 19.94 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.007355, allocations: 8 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.007557, allocations: 131.8 kB / 382.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.008964, allocations: 1.317 MB / 384 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.009212, allocations: 176.5 kB / 384.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.005e-05/0.009272, allocations: 50.91 kB / 384.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.009303, allocations: 11.88 kB / 384.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.009328, allocations: 41.39 kB / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.009329, allocations: 0 / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002905/0.00962, allocations: 141.3 kB / 384.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.009667, allocations: 136.5 kB / 384.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.009884, allocations: 338.2 kB / 384.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.009896, allocations: 25.7 kB / 384.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.01002, allocations: 306.7 kB / 385.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.01005, allocations: 59.66 kB / 385.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.7e-05/0.01012, allocations: 63.59 kB / 385.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.01024, allocations: 0.5079 MB / 385.8 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.849e-05/0.0103, allocations: 28.53 kB / 385.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.01041, allocations: 161 kB / 386 MB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.01058, allocations: 204.2 kB / 386.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01059, allocations: 0 / 386.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002523/0.01084, allocations: 225.4 kB / 386.4 MB, free: 9.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.01085, allocations: 8 kB / 386.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.01086, allocations: 4 kB / 386.5 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.01088, allocations: 4 kB / 386.5 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.01106, allocations: 84.08 kB / 386.5 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.01107, allocations: 8 kB / 386.6 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.01117, allocations: 35.78 kB / 386.6 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.01118, allocations: 8 kB / 386.6 MB, free: 9.605 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.823e-05/0.01127, allocations: 176.4 kB / 386.8 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.01133, allocations: 35.8 kB / 386.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.01137, allocations: 29.58 kB / 386.8 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.01137, allocations: 4 kB / 386.8 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.01138, allocations: 0 / 386.8 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.01138, allocations: 11.98 kB / 386.8 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.01186, allocations: 0.5925 MB / 387.4 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.01186, allocations: 4 kB / 387.4 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.553e-05/0.01196, allocations: 43.91 kB / 387.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.01196, allocations: 0 / 387.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.01197, allocations: 8 kB / 387.5 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.01197, allocations: 4 kB / 387.5 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01197, allocations: 4.156 kB / 387.5 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.01218, allocations: 437.2 kB / 387.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/0.01221, allocations: 35.73 kB / 388 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.01223, allocations: 0 / 388 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.01232, allocations: 16 kB / 388 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.927e-05/0.01237, allocations: 23.91 kB / 388 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.01238, allocations: 4 kB / 388 MB, free: 8.078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.0125, allocations: 222.9 kB / 388.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0125, allocations: 0 / 388.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.01274, allocations: 71.84 kB / 388.3 MB, free: 7.793 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.082e-05/0.01281, allocations: 111.2 kB / 388.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.01299, allocations: 111.5 kB / 388.5 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01299, allocations: 0 / 388.5 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.497e-05/0.01305, allocations: 51.84 kB / 388.6 MB, free: 7.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.01333, allocations: 24.83 kB / 388.6 MB, free: 7.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000637/0.01396, allocations: 0.5611 MB / 389.1 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.169e-05/0.01403, allocations: 87.95 kB / 389.2 MB, free: 6.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.097e-05/0.01409, allocations: 25.86 kB / 389.3 MB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.01413, allocations: 16.5 kB / 389.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01413, allocations: 0 / 389.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of Templates: time 0.003814/0.01795, allocations: 1.53 MB / 390.8 MB, free: 5.203 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2400756212882698]