Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008577/0.0008578, allocations: 95.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008887/0.0008888, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.7 MB / 247.5 MB, free: 9.469 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.189/0.189, allocations: 46.18 MB / 345.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002691, allocations: 8 kB / 420.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 63.55 MB / 483.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002184/0.111, allocations: 1.641 MB / 485.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1121, allocations: 0.5417 MB / 485.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1123, allocations: 8 kB / 485.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.1124, allocations: 15.8 kB / 485.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.1125, allocations: 39.69 kB / 486 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1128, allocations: 31.97 kB / 486 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.113, allocations: 147.3 kB / 486.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1131, allocations: 45.98 kB / 486.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.1133, allocations: 59.73 kB / 486.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.1134, allocations: 59.69 kB / 486.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.1135, allocations: 4 kB / 486.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.509e-05/0.1135, allocations: 12 kB / 486.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.1136, allocations: 19.92 kB / 486.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.504e-05/0.1136, allocations: 85.38 kB / 486.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.1138, allocations: 111.9 kB / 486.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1138, allocations: 0 / 486.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1138, allocations: 7.938 kB / 486.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1138, allocations: 0 / 486.5 MB, free: 1.27 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005381/0.1144, allocations: 423 kB / 487 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.1144, allocations: 8.875 kB / 487 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.1146, allocations: 28.73 kB / 487 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1148, allocations: 196.2 kB / 487.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1148, allocations: 20.31 kB / 487.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.1149, allocations: 12.38 kB / 487.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.1152, allocations: 138.2 kB / 487.3 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1152, allocations: 0 / 487.3 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.1152, allocations: 7.984 kB / 487.4 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1152, allocations: 4 kB / 487.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.1154, allocations: 83.95 kB / 487.4 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.1162, allocations: 484 kB / 487.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.1164, allocations: 122.5 kB / 488 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.1165, allocations: 60.83 kB / 488.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.1166, allocations: 0 / 488.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1166, allocations: 30.56 kB / 488.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 9.32e-07/0.1166, allocations: 4 kB / 488.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001463/0.1181, allocations: 0.8276 MB / 489 MB, free: 14.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.1181, allocations: 51.41 kB / 489 MB, free: 14.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.1182, allocations: 140.2 kB / 489.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1183, allocations: 29.7 kB / 489.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.1183, allocations: 120.3 kB / 489.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.1184, allocations: 63.09 kB / 489.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.1184, allocations: 21.7 kB / 489.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1185, allocations: 326.8 kB / 489.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.725e-05/0.1186, allocations: 43.98 kB / 489.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.1188, allocations: 82.53 kB / 489.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.119, allocations: 147.2 kB / 490 MB, free: 13.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.119, allocations: 0 / 490 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003928/0.1194, allocations: 206.2 kB / 490.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1194, allocations: 4 kB / 490.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1195, allocations: 11.98 kB / 490.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.1196, allocations: 52.8 kB / 490.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.1198, allocations: 31.98 kB / 490.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1211, allocations: 1.558 MB / 491.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.593e-05/0.1212, allocations: 11.98 kB / 491.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.1213, allocations: 4 kB / 491.8 MB, free: 11.51 MB / 366.1 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 0.0001129/0.1214, allocations: 133.7 kB / 492 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.623e-05/0.1214, allocations: 7.906 kB / 492 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/0.1215, allocations: 25.25 kB / 492 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1215, allocations: 0 / 492 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1215, allocations: 7.938 kB / 492 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1215, allocations: 3.984 kB / 492 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007705/0.1223, allocations: 0.5621 MB / 492.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1223, allocations: 0 / 492.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.1225, allocations: 32.17 kB / 492.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.1226, allocations: 36.83 kB / 492.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1226, allocations: 4 kB / 492.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.1236, allocations: 1.374 MB / 494 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1236, allocations: 3.938 kB / 494 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.1241, allocations: 353 kB / 494.4 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.1242, allocations: 88.95 kB / 494.4 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1242, allocations: 4 kB / 494.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.6e-05/0.1243, allocations: 7.984 kB / 494.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.1244, allocations: 20.05 kB / 494.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1244, allocations: 4 kB / 494.5 MB, free: 8.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.841e-05/0.1245, allocations: 113.6 kB / 494.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1245, allocations: 0 / 494.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.1248, allocations: 40 kB / 494.6 MB, free: 8.461 MB / 366.1 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 9.662e-05/0.1249, allocations: 99.19 kB / 494.7 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004864/0.1254, allocations: 270.5 kB / 495 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1254, allocations: 0 / 495 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.1257, allocations: 190.6 kB / 495.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.1261, allocations: 24.06 kB / 495.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007972/0.1269, allocations: 0.5604 MB / 495.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.1271, allocations: 0.7246 MB / 496.5 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.1272, allocations: 15.44 kB / 496.5 MB, free: 6.492 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1272, allocations: 0 / 496.5 MB, free: 6.492 MB / 366.1 MB Notification: Performance of Templates: time 0.004596/0.1318, allocations: 2.412 MB / 498.9 MB, free: 4.082 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches