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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008278/0.0008278, allocations: 91.77 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009511/0.0009512, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001871/0.0001872, allocations: 4 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07657, allocations: 51.53 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003786/0.08039, allocations: 4.155 MB / 363.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.08206, allocations: 1.372 MB / 364.9 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.08229, allocations: 23.81 kB / 364.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.08253, allocations: 134.9 kB / 365 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.0828, allocations: 130.8 kB / 365.2 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005104/0.08331, allocations: 327.7 kB / 365.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007129/0.08404, allocations: 0.9117 MB / 366.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.08448, allocations: 382.9 kB / 366.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.08476, allocations: 262.6 kB / 367 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.08502, allocations: 286.1 kB / 367.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.888e-05/0.08507, allocations: 28 kB / 367.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.08522, allocations: 75.92 kB / 367.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.324e-05/0.08531, allocations: 123.3 kB / 367.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.08556, allocations: 387.3 kB / 367.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006532/0.08621, allocations: 0.9495 MB / 368.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.08622, allocations: 0 / 368.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.08623, allocations: 4 kB / 368.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.08625, allocations: 3.938 kB / 368.9 MB, free: 3.625 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.001094/0.08735, allocations: 0.986 MB / 369.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.08739, allocations: 12.03 kB / 369.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.0875, allocations: 122.9 kB / 370 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.0877, allocations: 110.8 kB / 370.1 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006635/0.08837, allocations: 0.5955 MB / 370.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.08842, allocations: 58 kB / 370.7 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.289e-05/0.08852, allocations: 83.91 kB / 370.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.08963, allocations: 0.852 MB / 371.7 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.08967, allocations: 7.906 kB / 371.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.08972, allocations: 40 kB / 371.7 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.08974, allocations: 23.94 kB / 371.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007791/0.09053, allocations: 479.3 kB / 372.2 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/0.2311, allocations: 4.397 MB / 376.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.2316, allocations: 305.3 kB / 376.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.2318, allocations: 142.5 kB / 377 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.232, allocations: 172.1 kB / 377.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.232, allocations: 41.58 kB / 377.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.232, allocations: 0.5938 kB / 377.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.002783/0.2348, allocations: 1.741 MB / 379 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.2349, allocations: 61.56 kB / 379.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004959/0.2354, allocations: 0.5436 MB / 379.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.2354, allocations: 31.08 kB / 379.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.2356, allocations: 484.5 kB / 380.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.301e-05/0.2357, allocations: 206.7 kB / 380.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.2358, allocations: 70.94 kB / 380.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.038e-05/0.2358, allocations: 387.2 kB / 380.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.2361, allocations: 164.5 kB / 380.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.2364, allocations: 465 kB / 381.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005959/0.237, allocations: 0.672 MB / 382 MB, free: 11.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.237, allocations: 3.188 kB / 382 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009227/0.2379, allocations: 0.7367 MB / 382.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.238, allocations: 10.69 kB / 382.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.238, allocations: 9.156 kB / 382.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.2381, allocations: 58.94 kB / 382.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.2386, allocations: 179.3 kB / 383 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007921/0.2394, allocations: 1.523 MB / 384.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.2397, allocations: 26.16 kB / 384.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/0.2397, allocations: 38.38 kB / 384.6 MB, free: 10.04 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 (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.0002068/0.2399, allocations: 245.6 kB / 384.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/0.24, allocations: 73.47 kB / 384.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.2401, allocations: 78.61 kB / 385 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2402, allocations: 8.906 kB / 385 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2402, allocations: 1.188 kB / 385 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.2402, allocations: 2.953 kB / 385 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.2417, allocations: 1.416 MB / 386.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2417, allocations: 2.656 kB / 386.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000425/0.2421, allocations: 118.6 kB / 386.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.087e-05/0.2422, allocations: 24.59 kB / 386.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.2422, allocations: 10.2 kB / 386.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004914/0.2427, allocations: 1.29 MB / 387.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2427, allocations: 3.812 kB / 387.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.2436, allocations: 0.7854 MB / 388.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.2436, allocations: 135.1 kB / 388.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.2437, allocations: 13.73 kB / 388.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.2439, allocations: 20.66 kB / 388.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.244, allocations: 37.92 kB / 388.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.244, allocations: 18.95 kB / 388.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.2443, allocations: 366.2 kB / 389.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2444, allocations: 96 / 389.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005383/0.2449, allocations: 141.5 kB / 389.4 MB, free: 6.699 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 (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.0009929/0.2459, allocations: 1.351 MB / 390.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007514/0.2467, allocations: 0.5865 MB / 391.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2467, allocations: 1.062 kB / 391.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000323/0.247, allocations: 312 kB / 391.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.2477, allocations: 101.9 kB / 391.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006467/0.2542, allocations: 6.771 MB / 398.5 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.2547, allocations: 0.9655 MB / 399.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002741/0.255, allocations: 83.67 kB / 399.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.2553, allocations: 325.8 kB / 399.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2553, allocations: 0 / 399.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5193/0.7747, allocations: 11.07 MB / 410.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.7749, allocations: 226.8 kB / 411.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.696, allocations: 3.25 kB / 411.2 MB, free: 7.598 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches