Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.001171/0.001171, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001239/0.001239, allocations: 194.7 kB / 24.49 MB, free: 3.941 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.309/1.309, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 47.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2404, allocations: 52.19 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003707/0.2441, allocations: 2.297 MB / 425.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.245, allocations: 0.5493 MB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2451, allocations: 7.938 kB / 426.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.2453, allocations: 39.58 kB / 426.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2454, allocations: 67.42 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.2457, allocations: 67.84 kB / 426.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.246, allocations: 246.9 kB / 426.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.2462, allocations: 69.64 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.2464, allocations: 99.64 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.2465, allocations: 111.5 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.2465, allocations: 20 kB / 426.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.2466, allocations: 20 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.2466, allocations: 51.84 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2467, allocations: 95.53 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.2471, allocations: 253.2 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2471, allocations: 4 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2471, allocations: 0 / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2471, allocations: 0 / 427.3 MB, free: 10.41 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007226/0.2478, allocations: 461.5 kB / 427.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2478, allocations: 16.03 kB / 427.8 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.705e-05/0.2479, allocations: 4.625 kB / 427.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.2479, allocations: 54.73 kB / 427.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.248, allocations: 28.75 kB / 427.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.2482, allocations: 178.8 kB / 428 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2483, allocations: 12.81 kB / 428.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.2483, allocations: 24.33 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004012/0.2487, allocations: 232.8 kB / 428.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2487, allocations: 4 kB / 428.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.2487, allocations: 8 kB / 428.3 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2488, allocations: 8 kB / 428.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.2491, allocations: 139.9 kB / 428.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.2503, allocations: 0.6966 MB / 429.2 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.2507, allocations: 197 kB / 429.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.2509, allocations: 94.02 kB / 429.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.2509, allocations: 7.938 kB / 429.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2509, allocations: 38.48 kB / 429.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.333e-06/0.2509, allocations: 0 / 429.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001482/0.2524, allocations: 0.7232 MB / 430.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.2525, allocations: 81.11 kB / 430.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.2527, allocations: 179.2 kB / 430.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.2527, allocations: 25.7 kB / 430.5 MB, free: 6.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.495e-05/0.2528, allocations: 140.5 kB / 430.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.456e-05/0.2529, allocations: 103.1 kB / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.645e-05/0.253, allocations: 45.7 kB / 430.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2532, allocations: 334.8 kB / 431.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.2534, allocations: 63.97 kB / 431.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.2535, allocations: 116.2 kB / 431.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.2539, allocations: 202.8 kB / 431.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2539, allocations: 0 / 431.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004315/0.2543, allocations: 241.4 kB / 431.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2543, allocations: 4 kB / 431.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2543, allocations: 0 / 431.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2543, allocations: 4 kB / 431.7 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.2546, allocations: 59.91 kB / 431.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.2546, allocations: 7.984 kB / 431.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.2547, allocations: 11.95 kB / 431.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.2547, allocations: 12 kB / 431.8 MB, free: 5.602 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.2549, allocations: 137.7 kB / 431.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.2549, allocations: 23.97 kB / 432 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.737e-05/0.255, allocations: 29.8 kB / 432 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.255, allocations: 4 kB / 432 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.255, allocations: 3.984 kB / 432 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.255, allocations: 3.938 kB / 432 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008073/0.2558, allocations: 0.5309 MB / 432.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2558, allocations: 4 kB / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/0.2561, allocations: 52.06 kB / 432.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2561, allocations: 4 kB / 432.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.2561, allocations: 15.92 kB / 432.6 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.2561, allocations: 7.938 kB / 432.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2561, allocations: 0 / 432.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006508/0.2568, allocations: 489 kB / 433.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.2568, allocations: 27.73 kB / 433.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.2569, allocations: 8 kB / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.257, allocations: 15.97 kB / 433.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.2571, allocations: 23.97 kB / 433.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.2571, allocations: 4 kB / 433.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.2572, allocations: 132.4 kB / 433.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2572, allocations: 0 / 433.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.2575, allocations: 52 kB / 433.4 MB, free: 3.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009498/0.2585, allocations: 1.015 MB / 434.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003688/0.2588, allocations: 178.3 kB / 434.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2589, allocations: 0 / 434.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.259, allocations: 91.83 kB / 434.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.2595, allocations: 47.5 kB / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.2629, allocations: 2.649 MB / 437.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.2631, allocations: 138.2 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.805e-05/0.2631, allocations: 25.94 kB / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2633, allocations: 67.41 kB / 437.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2633, allocations: 0 / 437.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.29, allocations: 4.774 MB / 442.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.76, allocations: 6.641 kB / 442.3 MB, free: 10.99 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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: 12.983459668932483]