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: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0023/0.0023, allocations: 117 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003372/0.003372, allocations: 208 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.937/2.937, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.6216/0.6216, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00345/0.00345, allocations: 75.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7892/0.7927, allocations: 62.45 MB / 0.5316 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002805/0.7956, allocations: 480.5 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003404/0.799, allocations: 1.271 MB / 0.5333 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.984e-05/0.7991, allocations: 4 kB / 0.5334 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.078e-05/0.7992, allocations: 1.344 kB / 0.5334 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.7995, allocations: 9.281 kB / 0.5334 GB, free: 12.23 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.001923/0.8014, allocations: 254.8 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.045e-05/0.8015, allocations: 1.906 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.809e-05/0.8016, allocations: 1.875 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.039e-05/0.8016, allocations: 1.844 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.8017, allocations: 12.08 kB / 0.5336 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.8018, allocations: 0 / 0.5336 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005224/0.807, allocations: 0.6799 MB / 0.5343 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.115e-05/0.807, allocations: 3.938 kB / 0.5343 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.197e-05/0.8071, allocations: 1.375 kB / 0.5343 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005084/0.8076, allocations: 179.5 kB / 0.5345 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.8076, allocations: 5.375 kB / 0.5345 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.8076, allocations: 0 / 0.5345 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.8077, allocations: 0 / 0.5345 GB, free: 11.66 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.000655/0.8083, allocations: 385.3 kB / 0.5348 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.058e-05/0.8084, allocations: 13.61 kB / 0.5348 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.681e-05/0.8085, allocations: 0.9375 kB / 0.5348 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.8087, allocations: 165.8 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.8087, allocations: 4.312 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.8088, allocations: 1.75 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.8089, allocations: 36.58 kB / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.8089, allocations: 0 / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.809, allocations: 0 / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.809, allocations: 5.312 kB / 0.5351 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.74e-05/0.809, allocations: 1.375 kB / 0.5351 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002391/0.8092, allocations: 147 kB / 0.5352 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.343e-05/0.8093, allocations: 25.27 kB / 0.5352 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.259e-05/0.8094, allocations: 14.23 kB / 0.5352 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.8094, allocations: 0 / 0.5352 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.434e-05/0.8095, allocations: 61.58 kB / 0.5353 GB, free: 10.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.8095, allocations: 0 / 0.5353 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002763/0.8098, allocations: 65.02 kB / 0.5354 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.8099, allocations: 77.11 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.81, allocations: 96.61 kB / 0.5355 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.81, allocations: 31.31 kB / 0.5355 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.8101, allocations: 84.14 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.8101, allocations: 1.375 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.8102, allocations: 11.09 kB / 0.5356 GB, free: 10.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.8104, allocations: 320.2 kB / 0.5359 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.622e-05/0.8104, allocations: 1.375 kB / 0.5359 GB, free: 9.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.154e-05/0.8104, allocations: 1.375 kB / 0.5359 GB, free: 9.969 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.8105, allocations: 59.02 kB / 0.536 GB, free: 9.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8105, allocations: 5.438 kB / 0.536 GB, free: 9.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001191/0.8107, allocations: 67.59 kB / 0.5361 GB, free: 9.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.8107, allocations: 35.14 kB / 0.5361 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.8107, allocations: 3.938 kB / 0.5361 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.8108, allocations: 0 / 0.5361 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-06/0.8108, allocations: 1.375 kB / 0.5361 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.8108, allocations: 0 / 0.5361 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.875e-05/0.8108, allocations: 4 kB / 0.5361 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.8109, allocations: 5.312 kB / 0.5361 GB, free: 9.777 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 0.0001394/0.811, allocations: 146.2 kB / 0.5363 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.811, allocations: 5.312 kB / 0.5363 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.8111, allocations: 3.125 kB / 0.5363 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.8111, allocations: 0 / 0.5363 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.8111, allocations: 1.375 kB / 0.5363 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.726e-05/0.8112, allocations: 77.11 kB / 0.5363 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.8112, allocations: 1.375 kB / 0.5363 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.773e-05/0.8112, allocations: 1.375 kB / 0.5363 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.8112, allocations: 3.938 kB / 0.5363 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002279/0.8115, allocations: 205.1 kB / 0.5365 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002528/0.8117, allocations: 244.8 kB / 0.5368 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.285e-05/0.8118, allocations: 5.359 kB / 0.5368 GB, free: 9.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.453e-05/0.8119, allocations: 78.03 kB / 0.5369 GB, free: 8.977 MB / 398.1 MB Notification: Performance of Backend: time 3.61e-07/0.8119, allocations: 0 / 0.5369 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.8135, allocations: 372.2 kB / 0.5372 GB, free: 8.734 MB / 398.1 MB Notification: Performance of SimCode: time 0.0006855/0.8142, allocations: 0.5826 MB / 0.5378 GB, free: 8.098 MB / 398.1 MB Notification: Performance of Templates: time 0.05175/0.866, allocations: 1.599 MB / 0.5393 GB, free: 7.258 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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