Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005826/0.1078, allocations: 4.601 MB / 430.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2112/0.319, allocations: 1.4 MB / 432.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003893/0.3194, allocations: 32.78 kB / 432.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003527/0.3198, allocations: 183.5 kB / 432.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003305/0.3201, allocations: 163.4 kB / 432.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007091/0.3208, allocations: 379.9 kB / 433 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007964/0.3216, allocations: 0.9776 MB / 434 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.322, allocations: 280.3 kB / 434.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003863/0.3223, allocations: 346.1 kB / 434.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003032/0.3227, allocations: 348 kB / 435 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.589e-05/0.3227, allocations: 76.88 kB / 435.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.323, allocations: 123.5 kB / 435.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3231, allocations: 171.6 kB / 435.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002654/0.3233, allocations: 429.5 kB / 435.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.3245, allocations: 1.116 MB / 436.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.279e-06/0.3245, allocations: 1.094 kB / 436.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3245, allocations: 0 / 436.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.3245, allocations: 0 / 436.9 MB, free: 6.145 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001478/0.326, allocations: 1.17 MB / 438 MB, free: 5.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.326, allocations: 9.312 kB / 438.1 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.3262, allocations: 127.1 kB / 438.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.3264, allocations: 119.3 kB / 438.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009064/0.3273, allocations: 0.6338 MB / 438.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.3274, allocations: 58 kB / 439 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.925e-05/0.3275, allocations: 85.11 kB / 439.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.3286, allocations: 0.8508 MB / 439.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.3286, allocations: 9.75 kB / 439.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.3287, allocations: 41.22 kB / 440 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3287, allocations: 21.56 kB / 440 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008418/0.3295, allocations: 473.9 kB / 440.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002942/0.3325, allocations: 4.388 MB / 444.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.333, allocations: 283.9 kB / 445.1 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.3333, allocations: 132.1 kB / 445.3 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002226/0.3335, allocations: 167.8 kB / 445.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3335, allocations: 38.89 kB / 445.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.705e-06/0.3335, allocations: 0 / 445.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003559/0.3371, allocations: 1.745 MB / 447.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.3371, allocations: 62.39 kB / 447.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007825/0.3379, allocations: 0.5408 MB / 447.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.338, allocations: 35.83 kB / 447.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003777/0.3383, allocations: 486.6 kB / 448.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3385, allocations: 230.2 kB / 448.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3388, allocations: 139.1 kB / 448.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003041/0.3391, allocations: 387.4 kB / 449 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.3394, allocations: 158.9 kB / 449.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006821/0.3401, allocations: 461.1 kB / 449.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.3411, allocations: 0.6577 MB / 450.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.3411, allocations: 3 kB / 450.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001411/0.3425, allocations: 0.7402 MB / 451.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3426, allocations: 9.688 kB / 451.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.3426, allocations: 13.25 kB / 451.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001966/0.3428, allocations: 49.28 kB / 451.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/0.3433, allocations: 177.9 kB / 451.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.3449, allocations: 1.699 MB / 453 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.3453, allocations: 25.09 kB / 453 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.101e-05/0.3453, allocations: 39.59 kB / 453.1 MB, free: 10.38 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.3456, allocations: 228.7 kB / 453.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3458, allocations: 81.66 kB / 453.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.3459, allocations: 76.95 kB / 453.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.3459, allocations: 6.891 kB / 453.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3459, allocations: 1.219 kB / 453.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3459, allocations: 2.203 kB / 453.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.3482, allocations: 1.412 MB / 454.9 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3482, allocations: 6.562 kB / 454.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.3486, allocations: 122.9 kB / 455 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-05/0.3487, allocations: 19.05 kB / 455 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/0.3488, allocations: 14.91 kB / 455 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3498, allocations: 1.388 MB / 456.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3498, allocations: 2.531 kB / 456.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.351, allocations: 0.7821 MB / 457.2 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.3512, allocations: 140.1 kB / 457.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.936e-05/0.3512, allocations: 15.94 kB / 457.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.3515, allocations: 12.77 kB / 457.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3516, allocations: 47.62 kB / 457.4 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.3516, allocations: 22.45 kB / 457.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005007/0.3521, allocations: 360.6 kB / 457.8 MB, free: 6.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3521, allocations: 0 / 457.8 MB, free: 6.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007105/0.3528, allocations: 142.2 kB / 457.9 MB, free: 6.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.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 (56): * Single equations (assignments): 55 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00159/0.3544, allocations: 1.331 MB / 459.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.3556, allocations: 0.5698 MB / 459.8 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3556, allocations: 3 kB / 459.8 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.356, allocations: 300.1 kB / 460.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000709/0.3567, allocations: 98.8 kB / 460.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009305/0.366, allocations: 6.087 MB / 466.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007117/0.3667, allocations: 0.9659 MB / 467.3 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000341/0.3671, allocations: 82.36 kB / 467.3 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.3675, allocations: 328.4 kB / 467.7 MB, free: 376 kB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3675, allocations: 1.156 kB / 467.7 MB, free: 376 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04474/0.4123, allocations: 11.97 MB / 479.6 MB, free: 9.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.86, allocations: 4 kB / 479.6 MB, free: 9 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.249768376117572]