Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.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.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 112.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.11 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 79.88 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3773, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.0115/0.3888, allocations: 10.34 MB / 0.5418 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007903/0.3968, allocations: 3.481 MB / 0.5452 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.3992, allocations: 55.28 kB / 0.5452 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.4007, allocations: 401 kB / 0.5456 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.4049, allocations: 0.9296 MB / 0.5465 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.4079, allocations: 1.029 MB / 0.5475 GB, free: 468 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006579/0.4145, allocations: 3.699 MB / 0.5512 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002292/0.4168, allocations: 0.923 MB / 0.5521 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.4202, allocations: 1.499 MB / 0.5535 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00301/0.4233, allocations: 1.689 MB / 0.5552 GB, free: 9.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001161/0.4244, allocations: 312 kB / 0.5555 GB, free: 9.254 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.4262, allocations: 439.9 kB / 0.5559 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.4274, allocations: 0.7516 MB / 0.5566 GB, free: 8.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00269/0.4301, allocations: 1.47 MB / 0.5581 GB, free: 6.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.4352, allocations: 3.595 MB / 0.5616 GB, free: 2.992 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.4352, allocations: 0 / 0.5616 GB, free: 2.992 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4352, allocations: 0 / 0.5616 GB, free: 2.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.034e-05/0.4353, allocations: 0 / 0.5616 GB, free: 2.992 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.008022/0.4433, allocations: 3.186 MB / 0.5647 GB, free: 15.74 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4434, allocations: 8.031 kB / 0.5647 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.4453, allocations: 421.4 kB / 0.5651 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.4474, allocations: 1.249 MB / 0.5663 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/0.4479, allocations: 412.5 kB / 0.5667 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004156/0.4483, allocations: 259.6 kB / 0.5669 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005612/0.4539, allocations: 2.735 MB / 0.5696 GB, free: 10.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.134e-05/0.454, allocations: 35.7 kB / 0.5697 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002443/0.4543, allocations: 92 kB / 0.5697 GB, free: 10.35 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/0.4543, allocations: 56 kB / 0.5698 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006457/0.4608, allocations: 2.707 MB / 0.5724 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.4769, allocations: 7.574 MB / 0.5798 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/0.4825, allocations: 2.582 MB / 0.5824 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003269/0.4858, allocations: 1.431 MB / 0.5838 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.486, allocations: 123 kB / 0.5839 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/0.4861, allocations: 76.36 kB / 0.5839 GB, free: 11.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 6.783e-06/0.4861, allocations: 4 kB / 0.5839 GB, free: 11.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=346): time 0.03642/0.5225, allocations: 14.98 MB / 0.5986 GB, free: 11.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/0.5228, allocations: 351 kB / 0.5989 GB, free: 11.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002301/0.5251, allocations: 1.268 MB / 0.6001 GB, free: 10.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006533/0.5258, allocations: 101.7 kB / 0.6002 GB, free: 10.06 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007318/0.5265, allocations: 0.7809 MB / 0.601 GB, free: 9.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/0.528, allocations: 1.155 MB / 0.6021 GB, free: 8.098 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001483/0.5295, allocations: 0.5503 MB / 0.6027 GB, free: 7.539 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5297, allocations: 305.1 kB / 0.603 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00295/0.5326, allocations: 1.15 MB / 0.6041 GB, free: 6.086 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/0.5361, allocations: 1.611 MB / 0.6057 GB, free: 4.332 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005749/0.5418, allocations: 2.578 MB / 0.6082 GB, free: 1.617 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/0.5419, allocations: 0 / 0.6082 GB, free: 1.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.008415/0.5503, allocations: 3.638 MB / 0.6117 GB, free: 13.95 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.5504, allocations: 11.94 kB / 0.6117 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/0.5504, allocations: 12 kB / 0.6118 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/0.5531, allocations: 1.143 MB / 0.6129 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/0.5564, allocations: 0.7372 MB / 0.6136 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/0.5668, allocations: 8.015 MB / 0.6214 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002896/0.5698, allocations: 251.7 kB / 0.6217 GB, free: 3.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005691/0.5704, allocations: 128 kB / 0.6218 GB, free: 3.301 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.ideal,gear2_1.lossyGear.mode,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.locked,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.startForward,gear2_1.lossyGear.tau_aPos,bearingFriction.free,lossyGear.ideal,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (347): * Single equations (assignments): 342 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,22), (2,25), (1,7), (1,9), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.001569/0.5719, allocations: 498.2 kB / 0.6223 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008908/0.5728, allocations: 233.2 kB / 0.6225 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.5743, allocations: 0.6124 MB / 0.6231 GB, free: 1.945 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.34e-05/0.5744, allocations: 23.94 kB / 0.6231 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.5744, allocations: 0 / 0.6231 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.5757, allocations: 0.5605 MB / 0.6236 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006408/0.5763, allocations: 80 kB / 0.6237 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003049/0.5794, allocations: 327.6 kB / 0.624 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000847/0.5802, allocations: 370 kB / 0.6244 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01368/0.5939, allocations: 4.768 MB / 0.629 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01313/0.6071, allocations: 5.462 MB / 0.6344 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004409/0.6116, allocations: 1.547 MB / 0.6359 GB, free: 4.707 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002215/0.6138, allocations: 0.8472 MB / 0.6367 GB, free: 3.859 MB / 494.1 MB Notification: Performance of Backend: time 1.082e-06/0.6138, allocations: 0 / 0.6367 GB, free: 3.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01087/0.6247, allocations: 2.938 MB / 0.6396 GB, free: 1.086 MB / 494.1 MB Notification: Performance of SimCode: time 0.01164/0.6364, allocations: 6.431 MB / 0.6459 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of Templates: time 0.07335/0.7098, allocations: 44.6 MB / 0.6894 GB, free: 14.18 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/AllComponents/AllComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches