Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001159/0.001159, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001343/0.001343, allocations: 173.2 kB / 25.61 MB, free: 8.535 MB / 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.9986/0.9986, allocations: 177.1 MB / 206 MB, free: 4.527 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1513/0.1513, allocations: 34.26 MB / 296.8 MB, free: 14.05 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.375e-05/3.541e-05, allocations: 7.25 kB / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002867/0.002902, allocations: 1.945 MB / 381.2 MB, free: 21.51 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008798/0.003782, allocations: 0.5454 MB / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.003898, allocations: 7.938 kB / 381.8 MB, free: 20.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.004031, allocations: 27.72 kB / 381.8 MB, free: 20.92 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.814e-05/0.004119, allocations: 47.58 kB / 381.8 MB, free: 20.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.00439, allocations: 39.94 kB / 381.9 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.004557, allocations: 155.2 kB / 382 MB, free: 20.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.004691, allocations: 45.77 kB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.004894, allocations: 99.72 kB / 382.2 MB, free: 20.54 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.131e-05/0.004985, allocations: 51.81 kB / 382.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.005007, allocations: 12 kB / 382.2 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.807e-05/0.005055, allocations: 16 kB / 382.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.151e-05/0.005077, allocations: 27.91 kB / 382.3 MB, free: 20.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.406e-05/0.005111, allocations: 47.84 kB / 382.3 MB, free: 20.39 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.005273, allocations: 107.6 kB / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.005276, allocations: 0 / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.005277, allocations: 0 / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.005282, allocations: 0 / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003735/0.005656, allocations: 467.9 kB / 382.9 MB, free: 19.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.005703, allocations: 8.031 kB / 382.9 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.005836, allocations: 32.84 kB / 382.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.00599, allocations: 160.3 kB / 383.1 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.006001, allocations: 8.375 kB / 383.1 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.006025, allocations: 24.36 kB / 383.1 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.006146, allocations: 94.91 kB / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.006157, allocations: 8.172 kB / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.006168, allocations: 8.125 kB / 383.2 MB, free: 19.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.006174, allocations: 7.938 kB / 383.2 MB, free: 19.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.769e-05/0.006222, allocations: 40.48 kB / 383.3 MB, free: 19.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.00662, allocations: 391.8 kB / 383.6 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.006737, allocations: 83.02 kB / 383.7 MB, free: 18.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.006774, allocations: 43.66 kB / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.006787, allocations: 0 / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.006807, allocations: 41.33 kB / 383.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.006808, allocations: 0 / 383.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007334/0.007542, allocations: 0.5281 MB / 384.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.007563, allocations: 59.41 kB / 384.4 MB, free: 18.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.57e-05/0.007629, allocations: 185.8 kB / 384.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.00764, allocations: 33.7 kB / 384.6 MB, free: 17.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.007692, allocations: 159.2 kB / 384.8 MB, free: 17.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.419e-05/0.007726, allocations: 71.39 kB / 384.8 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.007772, allocations: 43.36 kB / 384.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.031e-05/0.007852, allocations: 0.4923 MB / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.059e-05/0.007883, allocations: 19.92 kB / 385.4 MB, free: 17.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.137e-05/0.007934, allocations: 65.89 kB / 385.5 MB, free: 16.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.729e-05/0.008011, allocations: 90.59 kB / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.008013, allocations: 0 / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000189/0.008202, allocations: 165 kB / 385.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.008219, allocations: 8 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.008225, allocations: 0 / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.173e-05/0.008317, allocations: 43.72 kB / 385.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.464e-05/0.008411, allocations: 27.98 kB / 385.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009968/0.009408, allocations: 2.099 MB / 387.9 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.068e-05/0.009459, allocations: 4 kB / 387.9 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.009469, allocations: 4 kB / 387.9 MB, free: 14.41 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.862e-05/0.009547, allocations: 164.6 kB / 388.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.009579, allocations: 19.89 kB / 388.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.0096, allocations: 16.78 kB / 388.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.009602, allocations: 0 / 388.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.009608, allocations: 4 kB / 388.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.009612, allocations: 4.031 kB / 388.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003677/0.009979, allocations: 467.1 kB / 388.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.009983, allocations: 4 kB / 388.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.918e-05/0.01007, allocations: 43.91 kB / 388.6 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.119e-05/0.01013, allocations: 23.67 kB / 388.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.01014, allocations: 11.94 kB / 388.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006048/0.01075, allocations: 1.772 MB / 390.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01075, allocations: 0 / 390.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.01097, allocations: 323 kB / 390.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-06/0.01098, allocations: 11.94 kB / 390.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.01099, allocations: 11.94 kB / 390.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.242e-05/0.01103, allocations: 0 / 390.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.01108, allocations: 23.97 kB / 390.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.01109, allocations: 4 kB / 390.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.506e-05/0.01112, allocations: 141.5 kB / 390.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01112, allocations: 0 / 390.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00023/0.01135, allocations: 40 kB / 390.9 MB, free: 11.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001139/0.01147, allocations: 99.19 kB / 391 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003342/0.0118, allocations: 277.3 kB / 391.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.0118, allocations: 4.062 kB / 391.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.01193, allocations: 237.4 kB / 391.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.01222, allocations: 23.25 kB / 391.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008284/0.01305, allocations: 388.3 kB / 392 MB, free: 10.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.822e-05/0.01312, allocations: 76.22 kB / 392 MB, free: 9.965 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.743e-05/0.01316, allocations: 13.48 kB / 392 MB, free: 9.953 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.869e-05/0.01324, allocations: 86.19 kB / 392.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/0.01324, allocations: 0 / 392.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of Templates: time 0.004493/0.01774, allocations: 1.786 MB / 393.9 MB, free: 8.105 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.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.2375596491619945]