Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 113.2 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001978/0.001979, allocations: 184.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 55.91 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1233, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004021/0.1274, allocations: 2.201 MB / 377.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.129, allocations: 0.733 MB / 378.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.1293, allocations: 4 kB / 378.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.1295, allocations: 35.66 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.1298, allocations: 63.42 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.1302, allocations: 99.8 kB / 378.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.1306, allocations: 267.4 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1308, allocations: 72.3 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.131, allocations: 111.6 kB / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.1313, allocations: 119.5 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.1313, allocations: 20 kB / 378.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.1315, allocations: 71.88 kB / 378.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.019e-05/0.1316, allocations: 51.84 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1317, allocations: 111.4 kB / 379.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.1321, allocations: 271.1 kB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1321, allocations: 3.938 kB / 379.3 MB, free: 344 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1321, allocations: 8 kB / 379.3 MB, free: 336 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.1321, allocations: 0 / 379.3 MB, free: 336 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.2007/0.3329, allocations: 0.5021 MB / 379.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3329, allocations: 10.59 kB / 379.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.308e-05/0.333, allocations: 23.38 kB / 379.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.3333, allocations: 243.2 kB / 380.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.3334, allocations: 16.72 kB / 380.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.3334, allocations: 19.81 kB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.3339, allocations: 224.6 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3339, allocations: 1.375 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.3339, allocations: 12.31 kB / 380.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3339, allocations: 6.266 kB / 380.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003371/0.3343, allocations: 165.8 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.3353, allocations: 0.7733 MB / 381.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.3357, allocations: 137.5 kB / 381.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.3358, allocations: 73.22 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.3358, allocations: 6.875 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.3359, allocations: 32.59 kB / 381.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.054e-06/0.3359, allocations: 1.375 kB / 381.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001809/0.3377, allocations: 0.9847 MB / 382.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.3377, allocations: 61.22 kB / 382.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.338, allocations: 203.3 kB / 382.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.338, allocations: 26.83 kB / 382.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.685e-05/0.3381, allocations: 145 kB / 383 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.3381, allocations: 66.73 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.3382, allocations: 54.42 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.3383, allocations: 337.1 kB / 383.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.3385, allocations: 78.05 kB / 383.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3387, allocations: 118.4 kB / 383.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.3389, allocations: 179 kB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3389, allocations: 0.6094 kB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000463/0.3394, allocations: 281.8 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3394, allocations: 6.312 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3395, allocations: 2.719 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002381/0.3397, allocations: 71.7 kB / 384.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.3399, allocations: 43.19 kB / 384.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004168/0.3403, allocations: 0.6213 MB / 384.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.3405, allocations: 22.7 kB / 384.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.3405, allocations: 7.969 kB / 384.9 MB, free: 10.05 MB / 318.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.3407, allocations: 133.5 kB / 385 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.3407, allocations: 28.28 kB / 385 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.7e-05/0.3408, allocations: 23.97 kB / 385 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3408, allocations: 6.859 kB / 385 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3408, allocations: 3.938 kB / 385 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3408, allocations: 0.9844 kB / 385 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008038/0.3416, allocations: 0.5935 MB / 385.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3416, allocations: 1.188 kB / 385.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.3418, allocations: 37.88 kB / 385.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.342, allocations: 68.58 kB / 385.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.3421, allocations: 7.953 kB / 385.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004296/0.3425, allocations: 0.6162 MB / 386.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3425, allocations: 1.312 kB / 386.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006196/0.3431, allocations: 415.6 kB / 386.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/0.3432, allocations: 115.4 kB / 386.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.3433, allocations: 6.859 kB / 386.9 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.3435, allocations: 25.75 kB / 386.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.3436, allocations: 25.06 kB / 386.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.3436, allocations: 10.33 kB / 387 MB, free: 8.469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.3437, allocations: 152.9 kB / 387.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3437, allocations: 0 / 387.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003508/0.3441, allocations: 60.16 kB / 387.2 MB, free: 8.367 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001813/0.3443, allocations: 117.6 kB / 387.3 MB, free: 8.277 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005106/0.3448, allocations: 212.2 kB / 387.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3448, allocations: 0 / 387.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.3451, allocations: 100.8 kB / 387.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.3455, allocations: 34.14 kB / 387.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3468, allocations: 0.6682 MB / 388.3 MB, free: 7.742 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.347, allocations: 0.7461 MB / 389 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.73e-05/0.3471, allocations: 21.53 kB / 389 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.3472, allocations: 17.58 kB / 389.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3472, allocations: 0 / 389.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of Templates: time 0.007576/0.3547, allocations: 3.225 MB / 392.3 MB, free: 6.781 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches