Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002851/0.002858, allocations: 188.3 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.326/4.326, allocations: 205.4 MB / 222.6 MB, free: 13.75 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.006016/0.006015, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2018/0.2018, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009781/0.0009786, allocations: 13.12 kB / 392 MB, free: 54.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2288, allocations: 50.38 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.01686/0.2458, allocations: 1.669 MB / 444 MB, free: 9.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.248, allocations: 0.5856 MB / 444.6 MB, free: 9.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.2483, allocations: 4 kB / 444.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.2484, allocations: 11.86 kB / 444.6 MB, free: 9.332 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003757/0.2488, allocations: 27.94 kB / 444.6 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004996/0.2538, allocations: 63.81 kB / 444.7 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004625/0.2543, allocations: 87.83 kB / 444.8 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.2546, allocations: 45.53 kB / 444.8 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.2548, allocations: 43.78 kB / 444.9 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.255, allocations: 43.78 kB / 444.9 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.255, allocations: 4 kB / 444.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.871e-05/0.2551, allocations: 4 kB / 444.9 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.2552, allocations: 31.84 kB / 445 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.853e-05/0.2553, allocations: 45.64 kB / 445 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.2555, allocations: 92.58 kB / 445.1 MB, free: 8.844 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2556, allocations: 4 kB / 445.1 MB, free: 8.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.2556, allocations: 7.875 kB / 445.1 MB, free: 8.832 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2556, allocations: 0 / 445.1 MB, free: 8.832 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001092/0.2567, allocations: 430.8 kB / 445.5 MB, free: 8.363 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.261e-05/0.2568, allocations: 12.03 kB / 445.5 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.2569, allocations: 15.81 kB / 445.6 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.2574, allocations: 222.7 kB / 445.8 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.2574, allocations: 8 kB / 445.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-05/0.2575, allocations: 12 kB / 445.8 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2586, allocations: 266.3 kB / 446 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/0.2587, allocations: 7.938 kB / 446.1 MB, free: 7.766 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.2587, allocations: 4 kB / 446.1 MB, free: 7.762 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.2587, allocations: 4 kB / 446.1 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.2594, allocations: 99.88 kB / 446.2 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.2606, allocations: 0.5959 MB / 446.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.2615, allocations: 151.9 kB / 446.9 MB, free: 6.816 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.445e-05/0.2616, allocations: 4 kB / 446.9 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.2617, allocations: 42.5 kB / 447 MB, free: 6.762 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 6.322e-06/0.2617, allocations: 0 / 447 MB, free: 6.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.001235/0.263, allocations: 193.5 kB / 447.1 MB, free: 6.566 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/0.2631, allocations: 118.7 kB / 447.3 MB, free: 6.426 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.2634, allocations: 154.2 kB / 447.4 MB, free: 6.266 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2634, allocations: 29.7 kB / 447.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.847e-05/0.2636, allocations: 182.8 kB / 447.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.486e-05/0.2636, allocations: 31.64 kB / 447.6 MB, free: 6.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.2637, allocations: 12.06 kB / 447.7 MB, free: 6.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.2638, allocations: 314.8 kB / 448 MB, free: 5.691 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.2641, allocations: 40.34 kB / 448 MB, free: 5.652 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.2645, allocations: 138.5 kB / 448.1 MB, free: 5.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.2649, allocations: 67.92 kB / 448.2 MB, free: 5.402 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.2649, allocations: 384 / 448.2 MB, free: 5.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.005229/0.2702, allocations: 201.2 kB / 448.4 MB, free: 5.199 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.2703, allocations: 8 kB / 448.4 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/0.2704, allocations: 4 kB / 448.4 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.742e-05/0.2704, allocations: 7.938 kB / 448.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.271, allocations: 55.91 kB / 448.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.641e-05/0.2711, allocations: 4 kB / 448.5 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.2715, allocations: 24.25 kB / 448.5 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.2716, allocations: 12 kB / 448.5 MB, free: 5.086 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.2718, allocations: 129.8 kB / 448.6 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.2723, allocations: 97.39 kB / 448.7 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.2724, allocations: 20.7 kB / 448.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.2725, allocations: 4.234 kB / 448.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.2725, allocations: 0 / 448.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2725, allocations: 0 / 448.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005725/0.2731, allocations: 221.4 kB / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.2731, allocations: 0 / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005573/0.2737, allocations: 43.97 kB / 449 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.468e-05/0.2738, allocations: 3.953 kB / 449 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/0.2738, allocations: 4 kB / 449 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.2738, allocations: 0 / 449 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.2739, allocations: 3.938 kB / 449 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.2752, allocations: 426.7 kB / 449.4 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.2754, allocations: 97.03 kB / 449.5 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/0.2755, allocations: 11.98 kB / 449.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.2759, allocations: 8 kB / 449.6 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.702e-05/0.276, allocations: 11.98 kB / 449.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.2761, allocations: 4 kB / 449.6 MB, free: 3.906 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001916/0.2763, allocations: 115.2 kB / 449.7 MB, free: 3.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.2763, allocations: 4.062 kB / 449.7 MB, free: 3.789 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00091/0.2773, allocations: 31.84 kB / 449.7 MB, free: 3.758 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002086/0.2775, allocations: 99.12 kB / 449.8 MB, free: 3.648 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009004/0.2785, allocations: 136.5 kB / 450 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.2785, allocations: 0 / 450 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.2788, allocations: 31.98 kB / 450 MB, free: 3.484 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009235/0.2797, allocations: 68.03 kB / 450.1 MB, free: 3.418 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005951/0.2858, allocations: 0.5229 MB / 450.6 MB, free: 2.852 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.2862, allocations: 0.7245 MB / 451.3 MB, free: 2.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.2863, allocations: 19.44 kB / 451.3 MB, free: 2.082 MB / 282.7 MB Notification: Performance of SimCode: time 1.874e-06/0.2863, allocations: 0 / 451.3 MB, free: 2.082 MB / 282.7 MB Notification: Performance of Templates: time 0.01126/0.2976, allocations: 1.564 MB / 452.9 MB, free: 0.5195 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches