Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001213/0.001213, allocations: 102.5 kB / 21.96 MB, free: 5.215 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.001282/0.001282, allocations: 214.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 207.7 MB / 236.1 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 54.12 kB / 348 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2426, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004332/0.2469, allocations: 4.074 MB / 401.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.2491, allocations: 1.341 MB / 402.5 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.2495, allocations: 34.31 kB / 402.6 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.2498, allocations: 175.2 kB / 402.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.2501, allocations: 171 kB / 402.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006765/0.2508, allocations: 371.1 kB / 403.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007352/0.2515, allocations: 0.9779 MB / 404.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.2519, allocations: 281.7 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.2522, allocations: 346.6 kB / 404.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.2525, allocations: 344.3 kB / 405.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2526, allocations: 72.56 kB / 405.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.2528, allocations: 116.3 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2529, allocations: 176.3 kB / 405.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.2531, allocations: 330.9 kB / 405.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009731/0.2541, allocations: 1.112 MB / 407 MB, free: 2.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2541, allocations: 4 kB / 407 MB, free: 2.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2541, allocations: 0 / 407 MB, free: 2.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.2541, allocations: 1.469 kB / 407 MB, free: 2.82 MB / 318.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.001274/0.2554, allocations: 1.097 MB / 408.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2555, allocations: 13.52 kB / 408.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.646e-05/0.2555, allocations: 21.31 kB / 408.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.2556, allocations: 124.2 kB / 408.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.2557, allocations: 110.2 kB / 408.4 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008393/0.2566, allocations: 0.5499 MB / 408.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.2566, allocations: 58.59 kB / 409 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-05/0.2567, allocations: 93 kB / 409.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.2578, allocations: 0.8402 MB / 409.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.2578, allocations: 8.906 kB / 409.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.168e-05/0.2579, allocations: 37.31 kB / 409.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.2579, allocations: 21.66 kB / 410 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007787/0.2587, allocations: 474.2 kB / 410.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.2623, allocations: 4.18 MB / 414.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/0.2628, allocations: 281.3 kB / 414.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.2631, allocations: 131.2 kB / 415 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001215/0.2632, allocations: 19.2 kB / 415 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.2632, allocations: 42.19 kB / 415.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 4.227e-06/0.2632, allocations: 3.984 kB / 415.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003327/0.2666, allocations: 1.602 MB / 416.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.2666, allocations: 62.78 kB / 416.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005999/0.2672, allocations: 0.5365 MB / 417.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.2672, allocations: 36.14 kB / 417.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.2676, allocations: 485.2 kB / 417.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.2678, allocations: 227.8 kB / 418 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.268, allocations: 142.4 kB / 418.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.2682, allocations: 382.5 kB / 418.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.2685, allocations: 159.9 kB / 418.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.269, allocations: 457.9 kB / 419.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008828/0.2699, allocations: 0.671 MB / 419.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.2699, allocations: 2.438 kB / 419.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001158/0.271, allocations: 0.7359 MB / 420.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.2711, allocations: 13.38 kB / 420.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.2711, allocations: 9.719 kB / 420.6 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.2712, allocations: 42.34 kB / 420.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.2718, allocations: 185.7 kB / 420.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.2732, allocations: 1.574 MB / 422.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.2736, allocations: 28.39 kB / 422.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.2736, allocations: 38.5 kB / 422.4 MB, free: 7.082 MB / 334.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.0003441/0.2739, allocations: 236.1 kB / 422.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.274, allocations: 77.84 kB / 422.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.2742, allocations: 76.95 kB / 422.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2742, allocations: 5.5 kB / 422.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.2742, allocations: 0 / 422.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2742, allocations: 5.359 kB / 422.8 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.2762, allocations: 1.275 MB / 424.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.2762, allocations: 6.625 kB / 424.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004694/0.2766, allocations: 115.2 kB / 424.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.831e-05/0.2767, allocations: 21.5 kB / 424.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.2767, allocations: 19.11 kB / 424.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/0.2778, allocations: 1.273 MB / 425.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.2778, allocations: 6.719 kB / 425.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.2789, allocations: 0.7796 MB / 426.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.792e-05/0.279, allocations: 60.03 kB / 426.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.279, allocations: 18.09 kB / 426.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2792, allocations: 17.14 kB / 426.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.167e-05/0.2793, allocations: 48.75 kB / 426.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/0.2793, allocations: 12.84 kB / 426.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004243/0.2798, allocations: 365 kB / 426.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2798, allocations: 1.531 kB / 426.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007788/0.2805, allocations: 136.2 kB / 426.9 MB, free: 3.645 MB / 334.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.001486/0.282, allocations: 1.347 MB / 428.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009499/0.283, allocations: 0.5601 MB / 428.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.283, allocations: 0 / 428.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004149/0.2834, allocations: 295.6 kB / 429.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006161/0.284, allocations: 107.1 kB / 429.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008102/0.2921, allocations: 6.073 MB / 435.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.2925, allocations: 374.3 kB / 435.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.2928, allocations: 89.91 kB / 435.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/0.2932, allocations: 319.3 kB / 436.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2932, allocations: 0 / 436.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04048/0.3337, allocations: 12.47 MB / 448.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.14, allocations: 0 / 448.6 MB, free: 13.91 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.392753842053935]