Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.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.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001591/0.001591, allocations: 113.6 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001173, allocations: 63.52 kB / 306.6 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09797, allocations: 50.53 MB / 357.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003953/0.102, allocations: 2.313 MB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006209/0.1026, allocations: 195.2 kB / 359.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1028, allocations: 4 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1029, allocations: 27.77 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.1031, allocations: 59.55 kB / 359.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.1033, allocations: 39.97 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.1036, allocations: 243 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.1038, allocations: 110.5 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.104, allocations: 87.7 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.1041, allocations: 103.5 kB / 360.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.1042, allocations: 20 kB / 360.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.1042, allocations: 20 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.721e-05/0.1043, allocations: 51.84 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1045, allocations: 111.5 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.1048, allocations: 255.3 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1049, allocations: 4 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1049, allocations: 0 / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1049, allocations: 0 / 360.7 MB, free: 10.71 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008246/0.1057, allocations: 0.5032 MB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1058, allocations: 8.031 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.543e-05/0.1058, allocations: 62.72 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.1059, allocations: 24.66 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.1062, allocations: 215.9 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.1062, allocations: 20.94 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.1063, allocations: 20.38 kB / 361.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.1067, allocations: 236.8 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/0.1068, allocations: 3.938 kB / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.1068, allocations: 8 kB / 361.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1069, allocations: 8 kB / 361.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.1071, allocations: 138.5 kB / 361.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.1084, allocations: 0.8634 MB / 362.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.1087, allocations: 155.9 kB / 363 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.391e-05/0.1088, allocations: 66.7 kB / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1088, allocations: 3.984 kB / 363 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.1088, allocations: 42.5 kB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.1088, allocations: 3.938 kB / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004686/0.1093, allocations: 165.3 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.1094, allocations: 110.8 kB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.1096, allocations: 198.3 kB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1096, allocations: 33.7 kB / 363.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.432e-05/0.1097, allocations: 155.8 kB / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.1098, allocations: 63.11 kB / 363.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.786e-05/0.1098, allocations: 57.89 kB / 363.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.11, allocations: 326.8 kB / 364.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.959e-05/0.1101, allocations: 52.53 kB / 364.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.1102, allocations: 155.6 kB / 364.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.1105, allocations: 222.2 kB / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1105, allocations: 0 / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003506/0.1108, allocations: 245.4 kB / 364.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1109, allocations: 12.09 kB / 364.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1109, allocations: 7.938 kB / 364.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.1109, allocations: 4 kB / 364.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.1111, allocations: 59.91 kB / 364.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.1111, allocations: 8 kB / 364.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.1113, allocations: 27.69 kB / 364.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.1114, allocations: 12 kB / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.1115, allocations: 138.8 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.448e-05/0.1116, allocations: 27.75 kB / 365.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.1117, allocations: 29.39 kB / 365.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1117, allocations: 0 / 365.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1117, allocations: 0 / 365.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.1117, allocations: 4 kB / 365.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.1123, allocations: 424.8 kB / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1123, allocations: 0 / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.1125, allocations: 40.08 kB / 365.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.1125, allocations: 0 / 365.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.1125, allocations: 8 kB / 365.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1125, allocations: 0 / 365.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1126, allocations: 7.938 kB / 365.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.1129, allocations: 372.9 kB / 366 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.268e-05/0.113, allocations: 108.8 kB / 366.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1131, allocations: 7.938 kB / 366.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.1132, allocations: 4.281 kB / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.1132, allocations: 19.86 kB / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.1133, allocations: 8 kB / 366.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.1134, allocations: 135.2 kB / 366.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1134, allocations: 4 kB / 366.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.1138, allocations: 55.84 kB / 366.3 MB, free: 4.594 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006668/0.1145, allocations: 0.909 MB / 367.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.1148, allocations: 147.8 kB / 367.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1148, allocations: 0 / 367.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.028e-05/0.1149, allocations: 56.84 kB / 367.4 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.1154, allocations: 32.73 kB / 367.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.1182, allocations: 2.611 MB / 370.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1453/0.2635, allocations: 0.7361 MB / 370.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.2637, allocations: 20.25 kB / 370.8 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.682e-05/0.2638, allocations: 54.16 kB / 370.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2638, allocations: 0.8438 kB / 370.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.2816, allocations: 3.574 MB / 374.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001275/0.2818, allocations: 198.5 kB / 374.6 MB, free: 19.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.129, allocations: 0 / 374.6 MB, free: 19.17 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches