Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 192.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 229.5 MB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007339/0.0007339, allocations: 103.1 kB / 299.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3345/0.3345, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003657, allocations: 8 kB / 470.8 MB, free: 7.082 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3379, allocations: 63.09 MB / 0.5214 GB, free: 38.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001925/0.3399, allocations: 1.6 MB / 0.5229 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007572/0.3406, allocations: 0.7348 MB / 0.5236 GB, free: 36.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.438e-05/0.3407, allocations: 2.375 kB / 0.5236 GB, free: 36.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.634e-05/0.3408, allocations: 21.03 kB / 0.5237 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.801e-05/0.3409, allocations: 31.8 kB / 0.5237 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.3411, allocations: 27.84 kB / 0.5237 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.3412, allocations: 149.6 kB / 0.5239 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.3413, allocations: 47.17 kB / 0.5239 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.3415, allocations: 61.44 kB / 0.524 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.3415, allocations: 57.61 kB / 0.524 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.3416, allocations: 5.969 kB / 0.524 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.63e-05/0.3416, allocations: 12.41 kB / 0.524 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.3416, allocations: 18.38 kB / 0.5241 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.865e-05/0.3417, allocations: 85.67 kB / 0.5241 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.3419, allocations: 142.6 kB / 0.5243 GB, free: 36.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3419, allocations: 6.906 kB / 0.5243 GB, free: 36.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3419, allocations: 0 / 0.5243 GB, free: 36.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.3419, allocations: 4 kB / 0.5243 GB, free: 36.17 MB / 378.7 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.0004572/0.3424, allocations: 413.1 kB / 0.5247 GB, free: 35.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.3424, allocations: 8.406 kB / 0.5247 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.3425, allocations: 22.31 kB / 0.5247 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.3427, allocations: 204 kB / 0.5249 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.3427, allocations: 13.69 kB / 0.5249 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.3427, allocations: 20.19 kB / 0.5249 GB, free: 35.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.343, allocations: 134.7 kB / 0.5251 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.343, allocations: 2.688 kB / 0.5251 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.343, allocations: 4 kB / 0.5251 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.343, allocations: 2.469 kB / 0.5251 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.3432, allocations: 85.42 kB / 0.5252 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005612/0.3438, allocations: 474 kB / 0.5256 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.344, allocations: 127.1 kB / 0.5257 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3441, allocations: 58.2 kB / 0.5258 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.3441, allocations: 2.812 kB / 0.5258 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.3442, allocations: 34.03 kB / 0.5258 GB, free: 34.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.3442, allocations: 0 / 0.5258 GB, free: 34.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001198/0.3454, allocations: 0.8176 MB / 0.5266 GB, free: 34.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.3454, allocations: 54.53 kB / 0.5267 GB, free: 34.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.007e-05/0.3455, allocations: 135.7 kB / 0.5268 GB, free: 34.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.3455, allocations: 32.7 kB / 0.5268 GB, free: 34.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.3456, allocations: 110.6 kB / 0.5269 GB, free: 34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.3456, allocations: 78.36 kB / 0.527 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.3456, allocations: 0 / 0.527 GB, free: 33.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.3457, allocations: 327.7 kB / 0.5273 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.304e-05/0.3458, allocations: 46.03 kB / 0.5274 GB, free: 33.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.759e-05/0.3459, allocations: 81.92 kB / 0.5274 GB, free: 33.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.346, allocations: 134.3 kB / 0.5276 GB, free: 33.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3461, allocations: 0 / 0.5276 GB, free: 33.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003272/0.3464, allocations: 206.6 kB / 0.5278 GB, free: 33.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3464, allocations: 10.03 kB / 0.5278 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3464, allocations: 3.938 kB / 0.5278 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/0.3466, allocations: 46.28 kB / 0.5278 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.3467, allocations: 37.2 kB / 0.5279 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009434/0.3477, allocations: 1.561 MB / 0.5294 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.124e-05/0.3478, allocations: 9.125 kB / 0.5294 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.3478, allocations: 5.875 kB / 0.5294 GB, free: 31.84 MB / 378.7 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 7.986e-05/0.3479, allocations: 131.3 kB / 0.5295 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.3479, allocations: 16.03 kB / 0.5295 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.3479, allocations: 19.81 kB / 0.5296 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3479, allocations: 6.594 kB / 0.5296 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.348, allocations: 2.656 kB / 0.5296 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.348, allocations: 0 / 0.5296 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005905/0.3486, allocations: 0.5557 MB / 0.5301 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3486, allocations: 4.734 kB / 0.5301 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.3487, allocations: 36.19 kB / 0.5301 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.989e-05/0.3488, allocations: 34.27 kB / 0.5302 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.3488, allocations: 0 / 0.5302 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006926/0.3495, allocations: 1.37 MB / 0.5315 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3496, allocations: 6.906 kB / 0.5315 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003845/0.3499, allocations: 358 kB / 0.5319 GB, free: 29.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.589e-05/0.35, allocations: 86.48 kB / 0.532 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.35, allocations: 4 kB / 0.532 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.3501, allocations: 9.531 kB / 0.532 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.3502, allocations: 12.58 kB / 0.532 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.3502, allocations: 7 kB / 0.532 GB, free: 29.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.664e-05/0.3502, allocations: 117.9 kB / 0.5321 GB, free: 29.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3502, allocations: 0 / 0.5321 GB, free: 29.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002889/0.3505, allocations: 39.28 kB / 0.5321 GB, free: 29.44 MB / 378.7 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 8.675e-05/0.3506, allocations: 102.8 kB / 0.5322 GB, free: 29.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.351, allocations: 260.5 kB / 0.5325 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.351, allocations: 3.938 kB / 0.5325 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.3513, allocations: 190.8 kB / 0.5327 GB, free: 29.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.3516, allocations: 23.61 kB / 0.5327 GB, free: 29.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006658/0.3522, allocations: 0.5303 MB / 0.5332 GB, free: 28.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.3524, allocations: 0.717 MB / 0.5339 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.697e-05/0.3524, allocations: 14.61 kB / 0.5339 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.3525, allocations: 16.03 kB / 0.5339 GB, free: 27.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3525, allocations: 0 / 0.5339 GB, free: 27.94 MB / 378.7 MB Notification: Performance of Templates: time 0.003509/0.356, allocations: 1.501 MB / 0.5354 GB, free: 27.8 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches