Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007552/0.0007554, allocations: 102 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000817/0.0008172, allocations: 197.2 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002067/0.000207, allocations: 4 kB / 307.1 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.0892, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004267/0.09351, allocations: 3.925 MB / 362.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.09584, allocations: 1.326 MB / 363.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006068/0.09647, allocations: 27.88 kB / 363.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003874/0.09688, allocations: 126.9 kB / 364 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000422/0.09731, allocations: 130.8 kB / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006889/0.09801, allocations: 255.6 kB / 364.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008173/0.09884, allocations: 0.8568 MB / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.09924, allocations: 296.3 kB / 365.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.09954, allocations: 246.8 kB / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.0998, allocations: 274.2 kB / 366.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.328e-05/0.09986, allocations: 28 kB / 366.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.1, allocations: 67.98 kB / 366.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.1001, allocations: 123.3 kB / 366.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1003, allocations: 177.2 kB / 366.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005907/0.1009, allocations: 0.756 MB / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1009, allocations: 0 / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1009, allocations: 0 / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1009, allocations: 0 / 367.2 MB, free: 5.012 MB / 302.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.001176/0.1021, allocations: 0.99 MB / 368.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.1021, allocations: 8.031 kB / 368.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.1023, allocations: 114.7 kB / 368.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007251/0.1031, allocations: 0.5841 MB / 368.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/0.1031, allocations: 58 kB / 369 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.864e-05/0.1032, allocations: 80 kB / 369 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.1045, allocations: 0.8364 MB / 369.9 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.1045, allocations: 15.84 kB / 369.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.186e-05/0.1046, allocations: 39.94 kB / 369.9 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.1046, allocations: 24 kB / 369.9 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008082/0.1054, allocations: 467.3 kB / 370.4 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2095/0.3149, allocations: 4.394 MB / 374.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007341/0.3156, allocations: 308.8 kB / 375.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.316, allocations: 145.8 kB / 375.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/0.3162, allocations: 169.2 kB / 375.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.3162, allocations: 37.19 kB / 375.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.106e-06/0.3162, allocations: 0 / 375.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003583/0.3198, allocations: 1.737 MB / 377.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.3198, allocations: 59.11 kB / 377.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007976/0.3206, allocations: 0.5326 MB / 377.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.3207, allocations: 36.02 kB / 377.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.321, allocations: 479.9 kB / 378.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.3211, allocations: 212.2 kB / 378.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.3212, allocations: 22.03 kB / 378.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3213, allocations: 385.2 kB / 378.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003117/0.3216, allocations: 162.9 kB / 379 MB, free: 13.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.322, allocations: 454.4 kB / 379.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004979/0.3225, allocations: 232.7 kB / 379.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.3226, allocations: 6.75 kB / 379.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001156/0.3237, allocations: 0.733 MB / 380.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.3238, allocations: 14.25 kB / 380.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.3238, allocations: 8.844 kB / 380.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.3239, allocations: 49.61 kB / 380.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.3246, allocations: 182 kB / 380.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009772/0.3255, allocations: 1.514 MB / 382.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.3259, allocations: 31.41 kB / 382.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/0.326, allocations: 34.25 kB / 382.3 MB, free: 11.2 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002705/0.3263, allocations: 241.5 kB / 382.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.36e-05/0.3263, allocations: 72.08 kB / 382.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.3265, allocations: 74.45 kB / 382.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3265, allocations: 8.812 kB / 382.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3265, allocations: 1.766 kB / 382.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3265, allocations: 2.531 kB / 382.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.3283, allocations: 1.414 MB / 384.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3283, allocations: 2.75 kB / 384.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.3288, allocations: 121.1 kB / 384.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.551e-05/0.3289, allocations: 28.81 kB / 384.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.3289, allocations: 19.58 kB / 384.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000528/0.3295, allocations: 1.272 MB / 385.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3295, allocations: 9.906 kB / 385.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008958/0.3304, allocations: 0.7794 MB / 386.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.922e-05/0.3305, allocations: 141.9 kB / 386.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.3305, allocations: 16.03 kB / 386.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.3307, allocations: 14.72 kB / 386.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.3308, allocations: 39.14 kB / 386.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.3308, allocations: 21.69 kB / 386.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003738/0.3312, allocations: 359.6 kB / 386.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3312, allocations: 4 kB / 386.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006563/0.3319, allocations: 138.9 kB / 387 MB, free: 7.867 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001472/0.332, allocations: 118.6 kB / 387.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009112/0.333, allocations: 0.5795 MB / 387.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.333, allocations: 1.094 kB / 387.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003522/0.3333, allocations: 309.2 kB / 388 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005769/0.3339, allocations: 96.8 kB / 388.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.3365, allocations: 2.307 MB / 390.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.337, allocations: 0.9624 MB / 391.4 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.3372, allocations: 90.72 kB / 391.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.3374, allocations: 60.48 kB / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3374, allocations: 0 / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of Templates: time 0.01022/0.3476, allocations: 4.871 MB / 396.4 MB, free: 3.746 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches