Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001522/0.001522, allocations: 175.8 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205 MB / 222.6 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007151/0.0007151, allocations: 90.31 kB / 270.5 MB, free: 8.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07271/0.07271, allocations: 12.57 MB / 331 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003476, allocations: 16 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06591/0.06628, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001567/0.06788, allocations: 1.587 MB / 443.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006388/0.06854, allocations: 499.7 kB / 443.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.364e-05/0.06865, allocations: 0 / 443.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.558e-05/0.06876, allocations: 11.92 kB / 443.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.774e-05/0.06883, allocations: 15.84 kB / 443.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001251/0.06896, allocations: 27.98 kB / 443.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.06909, allocations: 95.59 kB / 443.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.0692, allocations: 37.66 kB / 443.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.739e-05/0.06927, allocations: 35.8 kB / 444 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.537e-05/0.06933, allocations: 39.78 kB / 444 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.06936, allocations: 4 kB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.502e-05/0.06938, allocations: 4 kB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.0694, allocations: 15.92 kB / 444 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.734e-05/0.06944, allocations: 43.72 kB / 444.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.478e-05/0.06955, allocations: 95.59 kB / 444.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.06956, allocations: 4 kB / 444.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.06956, allocations: 0 / 444.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.06957, allocations: 0 / 444.2 MB, free: 13.89 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004147/0.06999, allocations: 395.3 kB / 444.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.07003, allocations: 8.031 kB / 444.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.07008, allocations: 12.84 kB / 444.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.07022, allocations: 188.2 kB / 444.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.07024, allocations: 12.56 kB / 444.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.07027, allocations: 12.36 kB / 444.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.07069, allocations: 123.2 kB / 444.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.07075, allocations: 0 / 444.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.07078, allocations: 8 kB / 444.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.07079, allocations: 4 kB / 444.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.07107, allocations: 87.88 kB / 445 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.07175, allocations: 0.5401 MB / 445.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.07197, allocations: 86.53 kB / 445.6 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.0721, allocations: 44.84 kB / 445.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.07213, allocations: 0 / 445.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.07216, allocations: 34.55 kB / 445.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.07217, allocations: 3.938 kB / 445.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004354/0.07261, allocations: 133.6 kB / 445.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.421e-05/0.07263, allocations: 51.41 kB / 445.9 MB, free: 11.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.902e-05/0.07272, allocations: 129.7 kB / 446 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.07274, allocations: 25.7 kB / 446.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.0728, allocations: 127.8 kB / 446.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.054e-05/0.07284, allocations: 27.75 kB / 446.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.0729, allocations: 13.72 kB / 446.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.07296, allocations: 326.8 kB / 446.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.07317, allocations: 35.97 kB / 446.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.07337, allocations: 76.27 kB / 446.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.07363, allocations: 112.1 kB / 446.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.07364, allocations: 7.938 kB / 446.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003195/0.07397, allocations: 149.5 kB / 446.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.07399, allocations: 4 kB / 446.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.07401, allocations: 0 / 446.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.07403, allocations: 4 kB / 446.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.07422, allocations: 39.91 kB / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.07424, allocations: 0 / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.07435, allocations: 16.03 kB / 447 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.07437, allocations: 4.312 kB / 447 MB, free: 10.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 13 * 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 6.959e-05/0.07444, allocations: 126.6 kB / 447.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.07448, allocations: 7.906 kB / 447.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.435e-05/0.07452, allocations: 12.38 kB / 447.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.07453, allocations: 0 / 447.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.07454, allocations: 0 / 447.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.326e-05/0.07457, allocations: 81.11 kB / 447.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.0746, allocations: 15.88 kB / 447.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.07472, allocations: 11.98 kB / 447.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.07477, allocations: 11.92 kB / 447.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004121/0.07519, allocations: 208.8 kB / 447.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000419/0.07562, allocations: 338.6 kB / 447.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001212/0.07575, allocations: 36.02 kB / 447.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.935e-05/0.0758, allocations: 103.8 kB / 447.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of Backend: time 5.51e-07/0.07581, allocations: 0 / 447.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004354/0.07625, allocations: 134.2 kB / 448 MB, free: 9.695 MB / 298.7 MB Notification: Performance of SimCode: time 0.0007521/0.07702, allocations: 0.8398 MB / 448.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of Templates: time 0.003181/0.08021, allocations: 1.038 MB / 449.9 MB, free: 7.773 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches