Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009166/0.0009166, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009299/0.0009299, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8922/0.8922, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.188e-06/4.188e-06, allocations: 4 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.596e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002466/0.002492, allocations: 2.233 MB / 320.7 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006972/0.003189, allocations: 0.5608 MB / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.889e-05/0.003288, allocations: 7.938 kB / 321.2 MB, free: 3.555 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.003409, allocations: 35.66 kB / 321.3 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.003523, allocations: 79.27 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001746/0.003697, allocations: 63.8 kB / 321.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.00391, allocations: 286.5 kB / 321.7 MB, free: 3.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.004066, allocations: 68.17 kB / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.004224, allocations: 171.6 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.485e-05/0.004319, allocations: 75.78 kB / 322 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.00435, allocations: 24 kB / 322 MB, free: 2.762 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.096e-05/0.004371, allocations: 20 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/0.004404, allocations: 51.77 kB / 322.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.74e-05/0.004461, allocations: 79.83 kB / 322.2 MB, free: 2.613 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.004683, allocations: 271 kB / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.004685, allocations: 0 / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.004686, allocations: 0 / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.004691, allocations: 0 / 322.4 MB, free: 2.348 MB / 282.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.0004866/0.005177, allocations: 464.9 kB / 322.9 MB, free: 1.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.005216, allocations: 8.031 kB / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.00526, allocations: 62.72 kB / 322.9 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.005295, allocations: 24.8 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.005516, allocations: 186 kB / 323.1 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.005529, allocations: 12.88 kB / 323.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.005564, allocations: 24.38 kB / 323.2 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.005819, allocations: 196.6 kB / 323.4 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.005832, allocations: 4.172 kB / 323.4 MB, free: 1.316 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.005849, allocations: 16.12 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.005857, allocations: 8 kB / 323.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.006024, allocations: 133.9 kB / 323.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006223/0.006647, allocations: 0.5445 MB / 324.1 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.006853, allocations: 166.5 kB / 324.2 MB, free: 412 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.746e-05/0.00695, allocations: 92.34 kB / 324.3 MB, free: 320 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.00697, allocations: 4 kB / 324.3 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.006989, allocations: 38.5 kB / 324.4 MB, free: 268 kB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.006991, allocations: 0 / 324.4 MB, free: 268 kB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001318/0.008309, allocations: 0.9256 MB / 325.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.00835, allocations: 55.41 kB / 325.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.008502, allocations: 180.1 kB / 325.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.008521, allocations: 37.7 kB / 325.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.641e-05/0.008597, allocations: 136.8 kB / 325.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.392e-05/0.008661, allocations: 119 kB / 325.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.008722, allocations: 49.7 kB / 325.9 MB, free: 14.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.008831, allocations: 342.8 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.008931, allocations: 63.97 kB / 326.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.009046, allocations: 104.1 kB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.009263, allocations: 201.2 kB / 326.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.009266, allocations: 0 / 326.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003423/0.009608, allocations: 298.2 kB / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.009623, allocations: 4 kB / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.009629, allocations: 0 / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001358/0.009765, allocations: 44.83 kB / 326.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.009922, allocations: 59.91 kB / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.01095, allocations: 1.629 MB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.345e-05/0.01101, allocations: 8.031 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.01102, allocations: 12 kB / 328.6 MB, free: 11.79 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.344e-05/0.01111, allocations: 141.8 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.01114, allocations: 15.91 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.248e-05/0.01117, allocations: 34.66 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01118, allocations: 8 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.01118, allocations: 4 kB / 328.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.01119, allocations: 3.984 kB / 328.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.01189, allocations: 0.7184 MB / 329.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.01189, allocations: 3.938 kB / 329.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.01205, allocations: 64 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.627e-05/0.01212, allocations: 32.84 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.01214, allocations: 11.98 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006856/0.01282, allocations: 1.377 MB / 331 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.01282, allocations: 4.031 kB / 331 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004084/0.01323, allocations: 490.8 kB / 331.5 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.907e-05/0.01325, allocations: 19.8 kB / 331.5 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.01327, allocations: 12.03 kB / 331.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.611e-05/0.01333, allocations: 8 kB / 331.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.01338, allocations: 23.95 kB / 331.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.01339, allocations: 12 kB / 331.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.01346, allocations: 127.2 kB / 331.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01346, allocations: 4 kB / 331.7 MB, free: 8.465 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002313/0.01369, allocations: 64 kB / 331.8 MB, free: 8.402 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.0005894/0.01428, allocations: 1.015 MB / 332.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.01468, allocations: 323.6 kB / 333.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01469, allocations: 0 / 333.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.01487, allocations: 242.8 kB / 333.3 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.01517, allocations: 54.75 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.01735, allocations: 2.658 MB / 336 MB, free: 3.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.375e-05/0.01744, allocations: 142.8 kB / 336.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.627e-05/0.01751, allocations: 26.28 kB / 336.2 MB, free: 3.762 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.435e-05/0.01759, allocations: 80.47 kB / 336.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01759, allocations: 0 / 336.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01973/0.03732, allocations: 6.089 MB / 342.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.907/6.945, allocations: 9.953 kB / 342.4 MB, free: 13.73 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.575186208821833]