Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 114.9 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 206.8 kB / 19.41 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2104/0.2104, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 75.88 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.334, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001482/0.3356, allocations: 495.1 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005804/0.3361, allocations: 248.5 kB / 0.5323 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.234e-05/0.3362, allocations: 0 / 0.5323 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.3362, allocations: 3.938 kB / 0.5323 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.3362, allocations: 4 kB / 0.5323 GB, free: 13.09 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.3365, allocations: 59.3 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.23e-05/0.3366, allocations: 9.406 kB / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.662e-05/0.3366, allocations: 1.781 kB / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.264e-05/0.3367, allocations: 0 / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.878e-05/0.3367, allocations: 1.062 kB / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-06/0.3367, allocations: 0 / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3368, allocations: 65.36 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.722e-06/0.3368, allocations: 0 / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.884e-05/0.3369, allocations: 1.438 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.337, allocations: 52.86 kB / 0.5325 GB, free: 12.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.337, allocations: 7.938 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.337, allocations: 1 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.337, allocations: 0 / 0.5325 GB, free: 12.96 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.0003182/0.3374, allocations: 354.5 kB / 0.5329 GB, free: 12.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3374, allocations: 8.906 kB / 0.5329 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.3374, allocations: 0.9375 kB / 0.5329 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.3375, allocations: 164.4 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3375, allocations: 1.688 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.3376, allocations: 1.688 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.081e-05/0.3376, allocations: 31.55 kB / 0.5331 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.3377, allocations: 1.094 kB / 0.5331 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.3377, allocations: 3.938 kB / 0.5331 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3377, allocations: 5.188 kB / 0.5331 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.658e-05/0.3377, allocations: 1.281 kB / 0.5331 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.3378, allocations: 151 kB / 0.5332 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.373e-05/0.3379, allocations: 15.95 kB / 0.5332 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.359e-05/0.3379, allocations: 10.2 kB / 0.5333 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-06/0.3379, allocations: 0 / 0.5333 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.338, allocations: 58.14 kB / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.338, allocations: 0 / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.3381, allocations: 74.89 kB / 0.5334 GB, free: 11.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.3382, allocations: 78.39 kB / 0.5335 GB, free: 11.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.528e-05/0.3382, allocations: 89.86 kB / 0.5335 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.3383, allocations: 25.7 kB / 0.5336 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.326e-05/0.3383, allocations: 85.58 kB / 0.5337 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.3383, allocations: 0 / 0.5337 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.3383, allocations: 19.94 kB / 0.5337 GB, free: 11.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.3385, allocations: 311.9 kB / 0.534 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.3385, allocations: 0 / 0.534 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.3385, allocations: 1.156 kB / 0.534 GB, free: 11.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.3385, allocations: 67.44 kB / 0.534 GB, free: 11.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3386, allocations: 9.094 kB / 0.534 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.368e-05/0.3386, allocations: 58.12 kB / 0.5341 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.3387, allocations: 35.23 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.3387, allocations: 0 / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3387, allocations: 5.062 kB / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3387, allocations: 0 / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3387, allocations: 0 / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.3387, allocations: 5.141 kB / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.3387, allocations: 1.062 kB / 0.5341 GB, free: 11.11 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 9.738e-05/0.3388, allocations: 141.7 kB / 0.5343 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.004e-05/0.3389, allocations: 5.141 kB / 0.5343 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-06/0.3389, allocations: 3.125 kB / 0.5343 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3389, allocations: 3.938 kB / 0.5343 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3389, allocations: 1.125 kB / 0.5343 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.3389, allocations: 77.11 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.3389, allocations: 1.062 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.133e-05/0.339, allocations: 9.141 kB / 0.5344 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.087e-05/0.339, allocations: 1.156 kB / 0.5344 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001192/0.3391, allocations: 199.3 kB / 0.5346 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00015/0.3393, allocations: 239.2 kB / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.485e-05/0.3393, allocations: 1.375 kB / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.428e-05/0.3393, allocations: 76.72 kB / 0.5349 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Backend: time 2.8e-07/0.3393, allocations: 0 / 0.5349 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007336/0.3401, allocations: 319.5 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003564/0.3404, allocations: 0.5817 MB / 0.5357 GB, free: 9.457 MB / 398.1 MB Notification: Performance of Templates: time 0.002975/0.3434, allocations: 0.8116 MB / 0.5365 GB, free: 9.02 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches