Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",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.001248/0.001248, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001297/0.001297, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 42.48 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09313, allocations: 49.44 MB / 349.7 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.InitialConditions): time 0.004412/0.0976, allocations: 2.537 MB / 352.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007198/0.09834, allocations: 255.1 kB / 352.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.09862, allocations: 4 kB / 352.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.09888, allocations: 31.7 kB / 352.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.09919, allocations: 79.38 kB / 352.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.09942, allocations: 51.95 kB / 352.6 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.09992, allocations: 322.5 kB / 352.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.1002, allocations: 99.11 kB / 353 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.1004, allocations: 123.6 kB / 353.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.1006, allocations: 127.4 kB / 353.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.1007, allocations: 24 kB / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.913e-05/0.1007, allocations: 24 kB / 353.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.106e-05/0.1008, allocations: 51.84 kB / 353.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1009, allocations: 151.2 kB / 353.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.1013, allocations: 311.2 kB / 353.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1013, allocations: 4 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1013, allocations: 0 / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.1013, allocations: 0 / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008096/0.1021, allocations: 0.5613 MB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1022, allocations: 16.03 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.1022, allocations: 62.72 kB / 354.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.1024, allocations: 36.56 kB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.1026, allocations: 243.8 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1026, allocations: 20.94 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.1027, allocations: 32.36 kB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.1031, allocations: 251.1 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.112e-05/0.1032, allocations: 7.844 kB / 355.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.1033, allocations: 16 kB / 355.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1033, allocations: 4 kB / 355.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.1036, allocations: 183.8 kB / 355.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1047, allocations: 0.7458 MB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.1051, allocations: 275.1 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1053, allocations: 125.7 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1054, allocations: 4.625 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.1054, allocations: 34.56 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.643e-06/0.1054, allocations: 0 / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.002683/0.1081, allocations: 1.724 MB / 358.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.1081, allocations: 81.11 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.1083, allocations: 182.2 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.1083, allocations: 33.7 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.587e-05/0.1084, allocations: 144.6 kB / 358.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.1086, allocations: 173.5 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.827e-05/0.1087, allocations: 74.25 kB / 358.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1088, allocations: 342.8 kB / 359.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.109, allocations: 101.1 kB / 359.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1092, allocations: 157.5 kB / 359.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.1096, allocations: 282.1 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1096, allocations: 0 / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004919/0.1101, allocations: 377.7 kB / 360.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1102, allocations: 4 kB / 360.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.1102, allocations: 0 / 360.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1102, allocations: 4 kB / 360.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/0.1106, allocations: 99.89 kB / 360.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.1106, allocations: 4 kB / 360.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.1107, allocations: 12 kB / 360.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.1107, allocations: 12 kB / 360.2 MB, free: 9.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (58): * Single equations (assignments): 58 * 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.0001492/0.1109, allocations: 161.8 kB / 360.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.111, allocations: 27.66 kB / 360.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.1111, allocations: 33.88 kB / 360.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.1111, allocations: 8 kB / 360.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1111, allocations: 0 / 360.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.1111, allocations: 3.984 kB / 360.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.1124, allocations: 0.955 MB / 361.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.1124, allocations: 11.97 kB / 361.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004063/0.1128, allocations: 95.84 kB / 361.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.1128, allocations: 4 kB / 361.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.1129, allocations: 8.062 kB / 361.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.1129, allocations: 11.98 kB / 361.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1129, allocations: 0 / 361.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1136, allocations: 0.6394 MB / 362.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.1137, allocations: 100.8 kB / 362.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.1138, allocations: 11.94 kB / 362.3 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.1139, allocations: 16 kB / 362.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.114, allocations: 31.89 kB / 362.3 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.114, allocations: 11.94 kB / 362.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.21e-05/0.1141, allocations: 136.3 kB / 362.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1141, allocations: 0 / 362.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000395/0.1145, allocations: 76 kB / 362.5 MB, free: 7.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (m1.s,m1.v,sd1.s_rel,sd1.v_rel,sd2.s_rel,sd2.v_rel,m4.s,m4.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 (48): * Single equations (assignments): 48 * 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.001011/0.1155, allocations: 1.203 MB / 363.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000496/0.116, allocations: 314.6 kB / 364 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.1161, allocations: 0 / 364 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.1163, allocations: 163.9 kB / 364.2 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.1169, allocations: 59.64 kB / 364.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.1206, allocations: 3.399 MB / 367.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.1209, allocations: 0.7726 MB / 368.4 MB, free: 1.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.1211, allocations: 34.94 kB / 368.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.1212, allocations: 99.41 kB / 368.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1212, allocations: 0 / 368.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1993/0.3206, allocations: 5.9 MB / 374.4 MB, free: 25.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/0.3208, allocations: 221.5 kB / 374.7 MB, free: 25.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.216, allocations: 0 / 374.7 MB, free: 25.42 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/InitialConditions/InitialConditions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches