Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 111.3 kB / 18.45 MB, free: 4.621 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.001051/0.001051, allocations: 186.2 kB / 19.38 MB, free: 3.699 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 / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2016/0.2016, allocations: 44.19 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.323, allocations: 60.82 MB / 0.5195 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001533/0.3245, allocations: 499.7 kB / 0.52 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3262, allocations: 1.263 MB / 0.5212 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.375e-05/0.3262, allocations: 0 / 0.5212 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3262, allocations: 1.281 kB / 0.5212 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.3264, allocations: 14.58 kB / 0.5213 GB, free: 2.41 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009423/0.3273, allocations: 248 kB / 0.5215 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.672e-05/0.3274, allocations: 7.25 kB / 0.5215 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.3274, allocations: 2.953 kB / 0.5215 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.606e-05/0.3274, allocations: 5.156 kB / 0.5215 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.248e-05/0.3275, allocations: 5.891 kB / 0.5215 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.795e-06/0.3275, allocations: 1.188 kB / 0.5215 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002815/0.3303, allocations: 0.6803 MB / 0.5222 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.3304, allocations: 4 kB / 0.5222 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.999e-05/0.3304, allocations: 9.031 kB / 0.5222 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.3307, allocations: 179 kB / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3307, allocations: 0 / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3307, allocations: 2.016 kB / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3307, allocations: 0 / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003144/0.331, allocations: 383.6 kB / 0.5227 GB, free: 1.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.3311, allocations: 8.688 kB / 0.5227 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.3311, allocations: 6.562 kB / 0.5227 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.948e-05/0.3312, allocations: 166.5 kB / 0.5229 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.3312, allocations: 1.281 kB / 0.5229 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.3312, allocations: 1.5 kB / 0.5229 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.52e-05/0.3313, allocations: 37.25 kB / 0.5229 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.3313, allocations: 0.7031 kB / 0.5229 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.3313, allocations: 1.125 kB / 0.5229 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.3313, allocations: 0 / 0.5229 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.585e-05/0.3313, allocations: 1.312 kB / 0.5229 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.455e-05/0.3314, allocations: 150.4 kB / 0.5231 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.396e-05/0.3315, allocations: 21.47 kB / 0.5231 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.251e-05/0.3315, allocations: 10.45 kB / 0.5231 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.3315, allocations: 1.281 kB / 0.5231 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.3315, allocations: 69.64 kB / 0.5232 GB, free: 1.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3315, allocations: 0 / 0.5232 GB, free: 1.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.3317, allocations: 66.67 kB / 0.5233 GB, free: 1.008 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.3317, allocations: 82.77 kB / 0.5233 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.771e-05/0.3318, allocations: 94.03 kB / 0.5234 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.3318, allocations: 25.7 kB / 0.5234 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.432e-05/0.3318, allocations: 85.8 kB / 0.5235 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.3318, allocations: 3.906 kB / 0.5235 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.3318, allocations: 12.91 kB / 0.5235 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.324e-05/0.3319, allocations: 313.1 kB / 0.5238 GB, free: 372 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.3319, allocations: 1.625 kB / 0.5238 GB, free: 372 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-06/0.3319, allocations: 6.125 kB / 0.5239 GB, free: 368 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.968e-05/0.3319, allocations: 64.84 kB / 0.5239 GB, free: 292 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3319, allocations: 0 / 0.5239 GB, free: 292 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.638e-05/0.332, allocations: 68.7 kB / 0.524 GB, free: 220 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.332, allocations: 32.41 kB / 0.524 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.332, allocations: 0 / 0.524 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3321, allocations: 1.188 kB / 0.524 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.3321, allocations: 0.5156 kB / 0.524 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.3321, allocations: 4.094 kB / 0.524 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.42e-05/0.3321, allocations: 1.406 kB / 0.524 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3321, allocations: 1.609 kB / 0.524 GB, free: 184 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 5.61e-05/0.3322, allocations: 135.8 kB / 0.5241 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-06/0.3322, allocations: 3.938 kB / 0.5242 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.163e-05/0.3322, allocations: 8.875 kB / 0.5242 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.3322, allocations: 0 / 0.5242 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3322, allocations: 1.562 kB / 0.5242 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3322, allocations: 0.7031 kB / 0.5242 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.3323, allocations: 153.1 kB / 0.5243 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3324, allocations: 6.141 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.134e-06/0.3324, allocations: 7.875 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.3324, allocations: 0 / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.3324, allocations: 1.594 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.3324, allocations: 5.562 kB / 0.5243 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3324, allocations: 3.938 kB / 0.5243 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.3325, allocations: 90.34 kB / 0.5244 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/0.3326, allocations: 85.83 kB / 0.5245 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3326, allocations: 1.734 kB / 0.5245 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-06/0.3326, allocations: 1.125 kB / 0.5245 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.48e-05/0.3326, allocations: 1.094 kB / 0.5245 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3326, allocations: 0.75 kB / 0.5245 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.186e-05/0.3327, allocations: 78.08 kB / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3327, allocations: 0 / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.333, allocations: 64 kB / 0.5246 GB, free: 15.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0006794/0.3337, allocations: 340.3 kB / 0.525 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.3338, allocations: 69.28 kB / 0.525 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3338, allocations: 1.125 kB / 0.525 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.342e-05/0.3338, allocations: 55.52 kB / 0.5251 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.334, allocations: 5.156 kB / 0.5251 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002043/0.3342, allocations: 120.5 kB / 0.5252 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.3344, allocations: 0.6814 MB / 0.5259 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.3344, allocations: 8.781 kB / 0.5259 GB, free: 14.37 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3345, allocations: 0 / 0.5259 GB, free: 14.37 MB / 398.1 MB Notification: Performance of Templates: time 0.003549/0.338, allocations: 1.67 MB / 0.5275 GB, free: 14 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches