Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 199.6 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 229.5 MB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007792/0.0007792, allocations: 106 kB / 299.9 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.0002109, allocations: 8 kB / 360.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2208, allocations: 51.4 MB / 412 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002024/0.2229, allocations: 1.983 MB / 414 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008897/0.2238, allocations: 0.8248 MB / 414.9 MB, free: 23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.2239, allocations: 4 kB / 414.9 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.2241, allocations: 29.3 kB / 414.9 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.2242, allocations: 63.47 kB / 414.9 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.2244, allocations: 56.61 kB / 415 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.2246, allocations: 266.3 kB / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.2248, allocations: 97.69 kB / 415.4 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.225, allocations: 91.59 kB / 415.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.2251, allocations: 103.5 kB / 415.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.2251, allocations: 8 kB / 415.6 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.892e-05/0.2252, allocations: 20 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.839e-05/0.2252, allocations: 39.78 kB / 415.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.355e-05/0.2253, allocations: 133.1 kB / 415.7 MB, free: 22.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001906/0.2255, allocations: 252.6 kB / 416 MB, free: 21.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2255, allocations: 0 / 416 MB, free: 21.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.075e-05/0.2255, allocations: 0 / 416 MB, free: 21.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2255, allocations: 0 / 416 MB, free: 21.85 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005499/0.2261, allocations: 0.4912 MB / 416.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.2261, allocations: 8.031 kB / 416.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.2263, allocations: 36.64 kB / 416.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.2265, allocations: 241.3 kB / 416.8 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.2265, allocations: 12.81 kB / 416.8 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.2266, allocations: 24.38 kB / 416.8 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.2269, allocations: 199.5 kB / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2269, allocations: 3.906 kB / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.2269, allocations: 12 kB / 417 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.2269, allocations: 8 kB / 417 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002238/0.2271, allocations: 141.7 kB / 417.2 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006995/0.2279, allocations: 0.6307 MB / 417.8 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.2281, allocations: 182.6 kB / 418 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.2282, allocations: 100.8 kB / 418.1 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2283, allocations: 8 kB / 418.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.2283, allocations: 30.56 kB / 418.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.172e-06/0.2283, allocations: 0 / 418.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001512/0.2298, allocations: 1.071 MB / 419.2 MB, free: 18.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.453e-05/0.2299, allocations: 71.33 kB / 419.2 MB, free: 18.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.23, allocations: 167.8 kB / 419.4 MB, free: 18.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.23, allocations: 37.69 kB / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.2301, allocations: 132.7 kB / 419.6 MB, free: 17.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.2301, allocations: 118.3 kB / 419.7 MB, free: 17.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.2301, allocations: 8 kB / 419.7 MB, free: 17.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.2302, allocations: 334.8 kB / 420 MB, free: 17.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2303, allocations: 75.72 kB / 420.1 MB, free: 17.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.2305, allocations: 107.2 kB / 420.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.2307, allocations: 202.3 kB / 420.4 MB, free: 17.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2307, allocations: 7.938 kB / 420.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003869/0.2311, allocations: 290.3 kB / 420.7 MB, free: 16.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2311, allocations: 8 kB / 420.7 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2311, allocations: 0 / 420.7 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.2313, allocations: 44.83 kB / 420.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.2315, allocations: 67.97 kB / 420.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009452/0.2325, allocations: 1.561 MB / 422.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.2326, allocations: 12.02 kB / 422.4 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.2326, allocations: 12 kB / 422.4 MB, free: 14.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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 9.314e-05/0.2327, allocations: 141.7 kB / 422.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.2328, allocations: 19.72 kB / 422.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.399e-05/0.2328, allocations: 30.59 kB / 422.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2328, allocations: 8.062 kB / 422.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2329, allocations: 4 kB / 422.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2329, allocations: 3.984 kB / 422.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008477/0.2337, allocations: 0.782 MB / 423.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2337, allocations: 0 / 423.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.234, allocations: 64.03 kB / 423.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001004/0.2341, allocations: 36.83 kB / 423.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2341, allocations: 16.09 kB / 423.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006925/0.2348, allocations: 1.374 MB / 424.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2348, allocations: 0 / 424.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.2353, allocations: 490.2 kB / 425.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-05/0.2354, allocations: 92.83 kB / 425.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.2354, allocations: 8 kB / 425.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.2355, allocations: 12.03 kB / 425.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.511e-05/0.2356, allocations: 27.91 kB / 425.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.2356, allocations: 4 kB / 425.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.97e-05/0.2357, allocations: 135.5 kB / 425.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2357, allocations: 4 kB / 425.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.236, allocations: 68 kB / 425.7 MB, free: 11.42 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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.0001104/0.2362, allocations: 111.4 kB / 425.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005104/0.2367, allocations: 342.6 kB / 426.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2367, allocations: 3.938 kB / 426.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002715/0.237, allocations: 257.4 kB / 426.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.2374, allocations: 43.97 kB / 426.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.2384, allocations: 0.9004 MB / 427.3 MB, free: 9.715 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.2386, allocations: 0.7563 MB / 428.1 MB, free: 8.934 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.504e-05/0.2387, allocations: 26.27 kB / 428.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.2387, allocations: 23.44 kB / 428.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2387, allocations: 0 / 428.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of Templates: time 0.004759/0.2435, allocations: 2.501 MB / 430.6 MB, free: 6.398 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches