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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 106.6 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 187.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001396, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08943, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005907/0.09537, allocations: 4.561 MB / 379.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1882/0.2836, allocations: 1.365 MB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005544/0.2843, allocations: 24.25 kB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004031/0.2847, allocations: 180.6 kB / 380.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003922/0.2851, allocations: 161.8 kB / 380.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008372/0.2859, allocations: 371.4 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000936/0.2869, allocations: 0.9789 MB / 382.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006428/0.2875, allocations: 419.8 kB / 382.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.288, allocations: 330 kB / 383 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004154/0.2885, allocations: 346.4 kB / 383.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.2886, allocations: 72.81 kB / 383.4 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.2889, allocations: 117.6 kB / 383.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.289, allocations: 171.6 kB / 383.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.2894, allocations: 425.9 kB / 384.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.2906, allocations: 1.101 MB / 385.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2906, allocations: 4.703 kB / 385.2 MB, free: 7.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2906, allocations: 0 / 385.2 MB, free: 7.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.2906, allocations: 0 / 385.2 MB, free: 7.676 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.001504/0.2921, allocations: 1.141 MB / 386.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2922, allocations: 9.312 kB / 386.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.2923, allocations: 123.2 kB / 386.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.2925, allocations: 106.3 kB / 386.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009296/0.2934, allocations: 0.6293 MB / 387.2 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.2934, allocations: 61.62 kB / 387.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.2936, allocations: 85.69 kB / 387.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.2948, allocations: 0.8476 MB / 388.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.686e-05/0.2949, allocations: 13.17 kB / 388.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.284e-05/0.295, allocations: 33.06 kB / 388.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.295, allocations: 21.69 kB / 388.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008839/0.2959, allocations: 474.4 kB / 388.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002931/0.2988, allocations: 4.371 MB / 393.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005242/0.2994, allocations: 310.3 kB / 393.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.2996, allocations: 143.8 kB / 393.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.2997, allocations: 174.1 kB / 393.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.2998, allocations: 32.98 kB / 393.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.064e-06/0.2998, allocations: 1.406 kB / 393.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003044/0.3028, allocations: 1.732 MB / 395.5 MB, free: 384 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.3029, allocations: 56.75 kB / 395.5 MB, free: 320 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.3034, allocations: 0.5438 MB / 396.1 MB, free: 56 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.3035, allocations: 36.23 kB / 396.1 MB, free: 16 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.3038, allocations: 476.8 kB / 396.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.304, allocations: 214.4 kB / 396.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.3042, allocations: 140.1 kB / 396.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.3044, allocations: 381.7 kB / 397.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.3047, allocations: 160.5 kB / 397.5 MB, free: 15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005091/0.3052, allocations: 463.4 kB / 397.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008128/0.306, allocations: 0.6655 MB / 398.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.306, allocations: 2.281 kB / 398.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001176/0.3072, allocations: 0.7414 MB / 399.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3072, allocations: 9.062 kB / 399.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.3073, allocations: 9.094 kB / 399.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.3074, allocations: 48.08 kB / 399.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005535/0.308, allocations: 181.2 kB / 399.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.3093, allocations: 1.695 MB / 401.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.3096, allocations: 28.83 kB / 401.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.3096, allocations: 37.98 kB / 401.3 MB, free: 11.96 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.0002763/0.3099, allocations: 237.5 kB / 401.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.31, allocations: 73.81 kB / 401.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3101, allocations: 77.28 kB / 401.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3101, allocations: 6.312 kB / 401.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.3102, allocations: 1.781 kB / 401.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3102, allocations: 2.438 kB / 401.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.3121, allocations: 1.419 MB / 403.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3122, allocations: 3.781 kB / 403.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.3126, allocations: 112.8 kB / 403.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.812e-05/0.3127, allocations: 28.59 kB / 403.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.3127, allocations: 10.34 kB / 403.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000834/0.3136, allocations: 1.372 MB / 404.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.3136, allocations: 2.75 kB / 404.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009656/0.3146, allocations: 0.7731 MB / 405.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3147, allocations: 145.9 kB / 405.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/0.3148, allocations: 14.86 kB / 405.6 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.315, allocations: 10.16 kB / 405.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.3151, allocations: 51.83 kB / 405.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.3151, allocations: 17.73 kB / 405.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.3155, allocations: 359.3 kB / 406 MB, free: 8.555 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3156, allocations: 1.812 kB / 406 MB, free: 8.555 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006802/0.3162, allocations: 140.5 kB / 406.2 MB, free: 8.531 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.001369/0.3176, allocations: 1.333 MB / 407.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3187, allocations: 0.5962 MB / 408.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.3187, allocations: 5.125 kB / 408.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.3191, allocations: 305.2 kB / 408.4 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.3198, allocations: 110.6 kB / 408.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/0.3278, allocations: 6.034 MB / 414.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006348/0.3284, allocations: 0.9653 MB / 415.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003189/0.3288, allocations: 89.19 kB / 415.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.3292, allocations: 322.6 kB / 415.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3292, allocations: 0 / 415.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03814/0.3673, allocations: 12.01 MB / 427.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.28, allocations: 4.062 kB / 427.9 MB, free: 7.668 MB / 350.1 MB (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 --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) 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) Reference file matches