Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00183/0.00183, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2326/0.2326, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00248/0.00248, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.336, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00144/0.3375, allocations: 494.6 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.3394, allocations: 1.268 MB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.3394, allocations: 0 / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.182e-05/0.3394, allocations: 2.281 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.3396, allocations: 9.969 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487: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.0009758/0.3406, allocations: 246.1 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.474e-05/0.3406, allocations: 3.594 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.325e-05/0.3407, allocations: 7.734 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.3407, allocations: 0 / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.3408, allocations: 11.83 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.3408, allocations: 0 / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003036/0.3438, allocations: 0.6824 MB / 0.5331 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-06/0.3438, allocations: 1.062 kB / 0.5331 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.3439, allocations: 9.062 kB / 0.5331 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.3441, allocations: 171.7 kB / 0.5333 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3441, allocations: 0 / 0.5333 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3442, allocations: 0 / 0.5333 GB, free: 11.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.3442, allocations: 5.219 kB / 0.5333 GB, free: 11.5 MB / 398.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.0003749/0.3445, allocations: 381.2 kB / 0.5337 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.3446, allocations: 10.28 kB / 0.5337 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.628e-05/0.3446, allocations: 34.73 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.3447, allocations: 2.281 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.3448, allocations: 173.6 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.3448, allocations: 384 / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.3448, allocations: 1.875 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.455e-05/0.3449, allocations: 48.23 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.3449, allocations: 0 / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.3449, allocations: 0 / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.3449, allocations: 0 / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.552e-05/0.3449, allocations: 2.906 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.3451, allocations: 147.1 kB / 0.5341 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.515e-05/0.3451, allocations: 20.36 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.3451, allocations: 10.27 kB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3451, allocations: 7.938 kB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.3452, allocations: 57.95 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.3452, allocations: 0 / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001485/0.3453, allocations: 64.42 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3454, allocations: 79.14 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.823e-05/0.3455, allocations: 99.7 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.3455, allocations: 27.58 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/0.3455, allocations: 84.39 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.3455, allocations: 3.984 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.3456, allocations: 15.48 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.145e-05/0.3457, allocations: 316.9 kB / 0.5348 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.3457, allocations: 3.938 kB / 0.5348 GB, free: 9.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.001e-06/0.3457, allocations: 1.906 kB / 0.5348 GB, free: 9.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.127e-05/0.3457, allocations: 60.08 kB / 0.5349 GB, free: 9.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3457, allocations: 0 / 0.5349 GB, free: 9.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.895e-05/0.3458, allocations: 71.14 kB / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3459, allocations: 31.52 kB / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3459, allocations: 1.594 kB / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.3459, allocations: 0 / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.3459, allocations: 0 / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3459, allocations: 0 / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.817e-05/0.3459, allocations: 5.688 kB / 0.535 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.3459, allocations: 0 / 0.535 GB, free: 9.57 MB / 398.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 7.603e-05/0.346, allocations: 142.7 kB / 0.5351 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.346, allocations: 7.969 kB / 0.5351 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.655e-06/0.346, allocations: 4.156 kB / 0.5351 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.346, allocations: 1.312 kB / 0.5351 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.3461, allocations: 0 / 0.5351 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.3461, allocations: 3.938 kB / 0.5351 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.215e-05/0.3462, allocations: 148.6 kB / 0.5353 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3462, allocations: 3.938 kB / 0.5353 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3462, allocations: 0 / 0.5353 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3462, allocations: 1.156 kB / 0.5353 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.3462, allocations: 0 / 0.5353 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3462, allocations: 5.594 kB / 0.5353 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3462, allocations: 0 / 0.5353 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.621e-05/0.3463, allocations: 91.27 kB / 0.5354 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.3463, allocations: 88.98 kB / 0.5355 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.3463, allocations: 1.594 kB / 0.5355 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.3464, allocations: 4 kB / 0.5355 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.3464, allocations: 1.125 kB / 0.5355 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.3464, allocations: 5.062 kB / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.55e-05/0.3464, allocations: 80.72 kB / 0.5356 GB, free: 8.914 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3464, allocations: 0 / 0.5356 GB, free: 8.914 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.3467, allocations: 60.92 kB / 0.5356 GB, free: 8.898 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.0009161/0.3477, allocations: 0.867 MB / 0.5365 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.968e-05/0.3478, allocations: 68.83 kB / 0.5365 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3478, allocations: 0 / 0.5365 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.218e-05/0.3478, allocations: 58.09 kB / 0.5366 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.348, allocations: 2.75 kB / 0.5366 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003708/0.3484, allocations: 134.1 kB / 0.5367 GB, free: 7.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3486, allocations: 0.6796 MB / 0.5374 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.186e-06/0.3486, allocations: 0 / 0.5374 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.279e-05/0.3486, allocations: 10.19 kB / 0.5374 GB, free: 7.148 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3486, allocations: 0 / 0.5374 GB, free: 7.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05934/0.408, allocations: 2.528 MB / 0.5399 GB, free: 5.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/8.005, allocations: 16.86 kB / 0.5399 GB, free: 5.715 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches