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.001093/0.001093, allocations: 114.5 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.001223/0.001223, allocations: 208 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.37/1.37, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.11 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 79.88 kB / 482 MB, free: 4.012 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3296, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01726/0.347, allocations: 10.34 MB / 0.5418 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.3579, allocations: 3.489 MB / 0.5452 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002612/0.3605, allocations: 51.28 kB / 0.5452 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.3622, allocations: 397.2 kB / 0.5456 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004621/0.3669, allocations: 0.9101 MB / 0.5465 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002541/0.3694, allocations: 1.038 MB / 0.5475 GB, free: 480 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004913/0.3744, allocations: 3.689 MB / 0.5511 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.3758, allocations: 0.9269 MB / 0.552 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.3785, allocations: 1.492 MB / 0.5535 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.3812, allocations: 1.693 MB / 0.5551 GB, free: 9.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008995/0.3821, allocations: 312 kB / 0.5554 GB, free: 9.266 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.3836, allocations: 439.9 kB / 0.5559 GB, free: 8.836 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009739/0.3845, allocations: 0.7477 MB / 0.5566 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002391/0.3869, allocations: 1.474 MB / 0.558 GB, free: 6.605 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004774/0.3917, allocations: 3.599 MB / 0.5615 GB, free: 3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.3917, allocations: 0 / 0.5615 GB, free: 3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3918, allocations: 3.938 kB / 0.5616 GB, free: 2.996 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000136/0.3919, allocations: 0 / 0.5616 GB, free: 2.996 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.007772/0.3997, allocations: 3.178 MB / 0.5647 GB, free: 15.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3997, allocations: 8.031 kB / 0.5647 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/0.4015, allocations: 421.4 kB / 0.5651 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.4034, allocations: 1.249 MB / 0.5663 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003791/0.4038, allocations: 412.4 kB / 0.5667 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004027/0.4042, allocations: 259.6 kB / 0.5669 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004896/0.4091, allocations: 2.735 MB / 0.5696 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.471e-05/0.4092, allocations: 35.64 kB / 0.5696 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.4095, allocations: 96 kB / 0.5697 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/0.4095, allocations: 56 kB / 0.5698 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005622/0.4151, allocations: 2.699 MB / 0.5724 GB, free: 7.602 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.4275, allocations: 7.566 MB / 0.5798 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005183/0.4327, allocations: 2.593 MB / 0.5823 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002825/0.4356, allocations: 1.423 MB / 0.5837 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002199/0.4358, allocations: 123 kB / 0.5838 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/0.4359, allocations: 76.3 kB / 0.5839 GB, free: 11.49 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 7.845e-06/0.4359, allocations: 7.984 kB / 0.5839 GB, free: 11.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=346): time 0.03161/0.4675, allocations: 14.99 MB / 0.5986 GB, free: 11.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.4677, allocations: 351.1 kB / 0.5989 GB, free: 11.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.4695, allocations: 1.264 MB / 0.6001 GB, free: 10.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004397/0.47, allocations: 101.7 kB / 0.6002 GB, free: 10.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005672/0.4705, allocations: 0.7769 MB / 0.601 GB, free: 9.285 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009667/0.4715, allocations: 1.159 MB / 0.6021 GB, free: 8.109 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008135/0.4723, allocations: 0.5464 MB / 0.6026 GB, free: 7.555 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.646e-05/0.4724, allocations: 309 kB / 0.6029 GB, free: 7.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002478/0.4749, allocations: 1.146 MB / 0.6041 GB, free: 6.102 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002785/0.4777, allocations: 1.611 MB / 0.6056 GB, free: 4.348 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004754/0.4825, allocations: 2.569 MB / 0.6081 GB, free: 1.645 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4825, allocations: 4.438 kB / 0.6081 GB, free: 1.641 MB / 462.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.007378/0.4899, allocations: 3.649 MB / 0.6117 GB, free: 13.96 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.49, allocations: 8 kB / 0.6117 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.49, allocations: 12 kB / 0.6117 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/0.4925, allocations: 1.139 MB / 0.6128 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/0.4955, allocations: 0.745 MB / 0.6136 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009197/0.5047, allocations: 8.007 MB / 0.6214 GB, free: 3.688 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002444/0.5072, allocations: 255.8 kB / 0.6216 GB, free: 3.438 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004785/0.5077, allocations: 120 kB / 0.6218 GB, free: 3.32 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.001423/0.5091, allocations: 0.4933 MB / 0.6222 GB, free: 2.816 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008344/0.51, allocations: 237.1 kB / 0.6225 GB, free: 2.582 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.5113, allocations: 0.6163 MB / 0.6231 GB, free: 1.949 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.692e-05/0.5114, allocations: 19.94 kB / 0.6231 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.5114, allocations: 7.984 kB / 0.6231 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/0.5125, allocations: 0.5566 MB / 0.6236 GB, free: 1.344 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.513, allocations: 76 kB / 0.6237 GB, free: 1.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002576/0.5156, allocations: 327.6 kB / 0.624 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007444/0.5163, allocations: 370 kB / 0.6244 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01127/0.5276, allocations: 4.765 MB / 0.629 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01006/0.5377, allocations: 5.46 MB / 0.6344 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003587/0.5413, allocations: 1.54 MB / 0.6359 GB, free: 4.727 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001328/0.5427, allocations: 0.8511 MB / 0.6367 GB, free: 3.875 MB / 494.1 MB Notification: Performance of Backend: time 4.1e-07/0.5427, allocations: 3.938 kB / 0.6367 GB, free: 3.871 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007124/0.5498, allocations: 2.953 MB / 0.6396 GB, free: 1.086 MB / 494.1 MB Notification: Performance of SimCode: time 0.008901/0.5587, allocations: 6.415 MB / 0.6458 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of Templates: time 0.0802/0.639, allocations: 46.22 MB / 0.691 GB, free: 12.57 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