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.00146/0.00146, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001605/0.001605, allocations: 191.5 kB / 24.5 MB, free: 4.09 MB / 14.72 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 1.328/1.328, allocations: 225.7 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 43.92 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2299, allocations: 52.19 MB / 423.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003705/0.2336, allocations: 2.371 MB / 425.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2347, allocations: 0.5844 MB / 426.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2348, allocations: 7.938 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.2349, allocations: 39.59 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.2351, allocations: 79.33 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.2353, allocations: 59.86 kB / 426.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.2356, allocations: 270.8 kB / 426.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.2358, allocations: 75.23 kB / 426.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.236, allocations: 111.5 kB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.2361, allocations: 115.5 kB / 427.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.2362, allocations: 27.94 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.528e-05/0.2362, allocations: 20 kB / 427.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.312e-05/0.2362, allocations: 47.84 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.2364, allocations: 123.4 kB / 427.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.2367, allocations: 267.6 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2367, allocations: 4 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2367, allocations: 0 / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2367, allocations: 0 / 427.6 MB, free: 10.38 MB / 334.1 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.0007037/0.2374, allocations: 457.5 kB / 428 MB, free: 9.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2374, allocations: 16.03 kB / 428.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.483e-05/0.2375, allocations: 4.625 kB / 428.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.75e-05/0.2375, allocations: 62.72 kB / 428.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.994e-05/0.2376, allocations: 28.75 kB / 428.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.2379, allocations: 183.5 kB / 428.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.2379, allocations: 16.81 kB / 428.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.238, allocations: 28.31 kB / 428.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.2383, allocations: 195.2 kB / 428.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2383, allocations: 8 kB / 428.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2384, allocations: 11.98 kB / 428.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2384, allocations: 8 kB / 428.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002787/0.2386, allocations: 133.7 kB / 428.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.2396, allocations: 0.5831 MB / 429.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.2399, allocations: 170.5 kB / 429.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.2401, allocations: 92.33 kB / 429.6 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.2401, allocations: 4 kB / 429.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.2401, allocations: 30.56 kB / 429.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.2401, allocations: 4 kB / 429.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001857/0.242, allocations: 0.9198 MB / 430.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.242, allocations: 55.41 kB / 430.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.2422, allocations: 180.1 kB / 430.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.2422, allocations: 37.7 kB / 430.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.676e-05/0.2423, allocations: 140.8 kB / 430.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.681e-05/0.2424, allocations: 122.9 kB / 431 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.3e-05/0.2425, allocations: 53.7 kB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2427, allocations: 330.8 kB / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.2428, allocations: 75.89 kB / 431.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.243, allocations: 111.2 kB / 431.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.2433, allocations: 189.3 kB / 431.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2433, allocations: 4 kB / 431.8 MB, free: 5.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004932/0.2438, allocations: 294.2 kB / 432.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.2438, allocations: 12.06 kB / 432.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2438, allocations: 3.938 kB / 432.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.244, allocations: 44.77 kB / 432.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.2442, allocations: 63.91 kB / 432.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.2458, allocations: 1.638 MB / 433.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.2459, allocations: 8.031 kB / 433.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2459, allocations: 8 kB / 433.9 MB, free: 3.75 MB / 334.1 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 0.0001405/0.2461, allocations: 150.3 kB / 434 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.2461, allocations: 23.86 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.97e-05/0.2462, allocations: 26.66 kB / 434 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2462, allocations: 4 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2462, allocations: 192 / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.2462, allocations: 7.984 kB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.2473, allocations: 0.7455 MB / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2473, allocations: 0 / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000261/0.2476, allocations: 55.91 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.2477, allocations: 36.83 kB / 434.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.2477, allocations: 12.09 kB / 434.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.2489, allocations: 1.385 MB / 436.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2489, allocations: 0 / 436.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.2496, allocations: 486.8 kB / 436.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.2497, allocations: 23.89 kB / 436.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.2497, allocations: 8 kB / 436.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.2498, allocations: 8 kB / 436.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.2499, allocations: 31.89 kB / 436.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.2499, allocations: 8 kB / 436.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.25, allocations: 135.2 kB / 437 MB, free: 400 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.25, allocations: 0 / 437 MB, free: 400 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.2504, allocations: 64 kB / 437 MB, free: 336 kB / 334.1 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.001026/0.2514, allocations: 1.02 MB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005899/0.252, allocations: 319.7 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.252, allocations: 0 / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003495/0.2524, allocations: 234.8 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.2528, allocations: 51.86 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.2564, allocations: 2.763 MB / 441.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.2568, allocations: 0.7564 MB / 442.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.882e-05/0.2569, allocations: 22.28 kB / 442.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.257, allocations: 83.39 kB / 442.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.257, allocations: 0 / 442.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.2879, allocations: 5.545 MB / 447.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.25, allocations: 7.922 kB / 447.8 MB, free: 5.488 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/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: 13.522335469955578]