Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001031/0.001031, allocations: 91.22 kB / 20.43 MB, free: 4.145 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.001761/0.001761, allocations: 165 kB / 23.8 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.009/1.009, allocations: 158.6 MB / 185.7 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1528/0.1528, allocations: 32.38 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 347.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.221e-05/3.391e-05, allocations: 6.25 kB / 347.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00318/0.003214, allocations: 1.959 MB / 349.6 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.004224, allocations: 0.5191 MB / 350.1 MB, free: 6.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.004345, allocations: 3.938 kB / 350.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.004481, allocations: 31.72 kB / 350.2 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.692e-05/0.004568, allocations: 35.7 kB / 350.2 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.004766, allocations: 47.75 kB / 350.2 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.004904, allocations: 151.2 kB / 350.4 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.005032, allocations: 41.84 kB / 350.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.005159, allocations: 87.8 kB / 350.5 MB, free: 6.582 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.36e-05/0.005242, allocations: 51.81 kB / 350.6 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.005268, allocations: 12 kB / 350.6 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.707e-05/0.005285, allocations: 12 kB / 350.6 MB, free: 6.508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.51e-05/0.005311, allocations: 27.91 kB / 350.6 MB, free: 6.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.00535, allocations: 47.91 kB / 350.7 MB, free: 6.434 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.005502, allocations: 103.5 kB / 350.8 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.005505, allocations: 0 / 350.8 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.005506, allocations: 0 / 350.8 MB, free: 6.332 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.005511, allocations: 0 / 350.8 MB, free: 6.332 MB / 282.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.0003709/0.005882, allocations: 460 kB / 351.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.00592, allocations: 16.02 kB / 351.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.00597, allocations: 28.84 kB / 351.3 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.006131, allocations: 147.2 kB / 351.4 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.006151, allocations: 20.36 kB / 351.4 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.006186, allocations: 12.38 kB / 351.4 MB, free: 5.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.0064, allocations: 110.9 kB / 351.5 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.006415, allocations: 192 / 351.5 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.006435, allocations: 12.12 kB / 351.5 MB, free: 5.477 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.006446, allocations: 0 / 351.5 MB, free: 5.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.006559, allocations: 47.95 kB / 351.6 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006218/0.007181, allocations: 423.2 kB / 352 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.007358, allocations: 98.97 kB / 352.1 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.134e-05/0.00741, allocations: 43.61 kB / 352.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.007425, allocations: 0 / 352.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.007442, allocations: 41.39 kB / 352.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.007444, allocations: 0 / 352.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008275/0.008271, allocations: 0.5681 MB / 352.8 MB, free: 4.145 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.008294, allocations: 63.28 kB / 352.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.252e-05/0.008356, allocations: 181.9 kB / 353 MB, free: 3.875 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.008364, allocations: 29.7 kB / 353 MB, free: 3.84 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.008409, allocations: 167.1 kB / 353.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.008439, allocations: 71.38 kB / 353.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.008483, allocations: 39.36 kB / 353.3 MB, free: 3.555 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.00854, allocations: 0.4923 MB / 353.8 MB, free: 3.051 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.51e-05/0.008575, allocations: 19.98 kB / 353.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.974e-05/0.008644, allocations: 70.72 kB / 353.9 MB, free: 2.945 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.008776, allocations: 98.67 kB / 354 MB, free: 2.832 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.008777, allocations: 4 kB / 354 MB, free: 2.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002607/0.009038, allocations: 173 kB / 354.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.009054, allocations: 7.938 kB / 354.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.00906, allocations: 0 / 354.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000129/0.009189, allocations: 35.67 kB / 354.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.009304, allocations: 43.91 kB / 354.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008344/0.01014, allocations: 2.118 MB / 356.4 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.617e-05/0.01019, allocations: 7.984 kB / 356.4 MB, free: 324 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.0102, allocations: 8.047 kB / 356.4 MB, free: 316 kB / 282.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.027e-05/0.01027, allocations: 168.5 kB / 356.5 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.01029, allocations: 15.95 kB / 356.5 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.01031, allocations: 12.78 kB / 356.6 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.01031, allocations: 7.938 kB / 356.6 MB, free: 92 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.01032, allocations: 0 / 356.6 MB, free: 92 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.01032, allocations: 8.016 kB / 356.6 MB, free: 84 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004886/0.01081, allocations: 0.4946 MB / 357.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.01081, allocations: 0 / 357.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.99e-05/0.01091, allocations: 35.97 kB / 357.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.994e-05/0.01099, allocations: 27.67 kB / 357.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.011, allocations: 4 kB / 357.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008401/0.01184, allocations: 1.803 MB / 358.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01185, allocations: 4 kB / 358.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.01213, allocations: 339.5 kB / 359.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.01214, allocations: 15.88 kB / 359.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.01216, allocations: 4 kB / 359.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.404e-05/0.0122, allocations: 4 kB / 359.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.01226, allocations: 20.03 kB / 359.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.01227, allocations: 4 kB / 359.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.799e-05/0.01233, allocations: 135.2 kB / 359.5 MB, free: 13 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01233, allocations: 0 / 359.5 MB, free: 13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.01258, allocations: 44 kB / 359.5 MB, free: 12.96 MB / 298.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.0001238/0.0127, allocations: 99.17 kB / 359.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004333/0.01313, allocations: 292.3 kB / 359.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.01314, allocations: 4.062 kB / 359.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.01339, allocations: 241.4 kB / 360.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.01367, allocations: 19.94 kB / 360.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008278/0.01449, allocations: 391.5 kB / 360.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.498e-05/0.01455, allocations: 76.06 kB / 360.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.73e-05/0.01459, allocations: 9.5 kB / 360.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/0.01462, allocations: 12.5 kB / 360.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.01462, allocations: 0 / 360.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of Templates: time 0.005005/0.01963, allocations: 1.698 MB / 362.3 MB, free: 10.06 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.1895665270276368]