Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002801/0.002801, allocations: 189.8 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.294/4.294, allocations: 205.4 MB / 222.6 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001758/0.001758, allocations: 106.8 kB / 270.9 MB, free: 13.39 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.251/0.251, allocations: 12.6 MB / 331.8 MB, free: 10.33 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001005, allocations: 12.12 kB / 392 MB, free: 54.88 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2212, allocations: 50.37 MB / 442.3 MB, free: 11.67 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004068/0.2253, allocations: 1.645 MB / 444 MB, free: 10.02 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.2272, allocations: 0.5389 MB / 444.5 MB, free: 9.469 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.2275, allocations: 7.938 kB / 444.5 MB, free: 9.461 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 6.857e-05/0.2276, allocations: 7.922 kB / 444.5 MB, free: 9.453 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.2279, allocations: 31.88 kB / 444.6 MB, free: 9.422 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.2285, allocations: 47.89 kB / 444.6 MB, free: 9.375 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003276/0.2288, allocations: 79.84 kB / 444.7 MB, free: 9.297 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002895/0.2291, allocations: 57.02 kB / 444.7 MB, free: 9.242 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.2293, allocations: 27.86 kB / 444.8 MB, free: 9.215 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.2295, allocations: 51.72 kB / 444.8 MB, free: 9.164 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.2295, allocations: 4 kB / 444.8 MB, free: 9.16 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.2296, allocations: 4 kB / 444.8 MB, free: 9.156 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 4.618e-05/0.2297, allocations: 23.84 kB / 444.9 MB, free: 9.133 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 7.544e-05/0.2297, allocations: 53.64 kB / 444.9 MB, free: 9.074 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.23, allocations: 84.61 kB / 445 MB, free: 8.992 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.23, allocations: 0 / 445 MB, free: 8.992 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.845e-06/0.23, allocations: 0 / 445 MB, free: 8.992 MB / 282.8 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2301, allocations: 0 / 445 MB, free: 8.992 MB / 282.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001004/0.2311, allocations: 411 kB / 445.4 MB, free: 8.543 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/0.2312, allocations: 12.03 kB / 445.4 MB, free: 8.531 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.757e-05/0.2313, allocations: 15.81 kB / 445.4 MB, free: 8.516 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.2317, allocations: 202.8 kB / 445.6 MB, free: 8.277 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.2317, allocations: 8 kB / 445.6 MB, free: 8.27 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.956e-05/0.2318, allocations: 15.91 kB / 445.6 MB, free: 8.254 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009899/0.2328, allocations: 248.3 kB / 445.9 MB, free: 7.988 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.29e-05/0.233, allocations: 4 kB / 445.9 MB, free: 7.984 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.233, allocations: 3.938 kB / 445.9 MB, free: 7.98 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.2331, allocations: 4 kB / 445.9 MB, free: 7.977 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006512/0.2337, allocations: 103.9 kB / 446 MB, free: 7.875 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2349, allocations: 0.592 MB / 446.6 MB, free: 7.207 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/0.2357, allocations: 155.9 kB / 446.7 MB, free: 7.027 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.2358, allocations: 4 kB / 446.7 MB, free: 7.023 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.2359, allocations: 34.56 kB / 446.8 MB, free: 6.98 MB / 282.8 MB Notification: Performance of pre-optimization done (n=15): time 4.168e-06/0.2359, allocations: 0 / 446.8 MB, free: 6.98 MB / 282.8 MB Notification: Performance of matching and sorting (n=15): time 0.001186/0.2371, allocations: 201.6 kB / 447 MB, free: 6.777 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.2373, allocations: 114.8 kB / 447.1 MB, free: 6.641 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.2375, allocations: 126.1 kB / 447.2 MB, free: 6.508 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2375, allocations: 29.7 kB / 447.2 MB, free: 6.473 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2377, allocations: 178.6 kB / 447.4 MB, free: 6.297 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/0.2377, allocations: 31.64 kB / 447.4 MB, free: 6.266 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.2378, allocations: 0 / 447.4 MB, free: 6.266 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 9.36e-05/0.2379, allocations: 319.2 kB / 447.8 MB, free: 5.945 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.2382, allocations: 48.28 kB / 447.8 MB, free: 5.898 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.2385, allocations: 138.2 kB / 447.9 MB, free: 5.719 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.2389, allocations: 71.89 kB / 448 MB, free: 5.648 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.2389, allocations: 3.938 kB / 448 MB, free: 5.645 MB / 282.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008811/0.2398, allocations: 201.2 kB / 448.2 MB, free: 5.441 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.2399, allocations: 4 kB / 448.2 MB, free: 5.438 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.2399, allocations: 4 kB / 448.2 MB, free: 5.434 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/0.24, allocations: 8 kB / 448.2 MB, free: 5.426 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/0.2404, allocations: 48.38 kB / 448.3 MB, free: 5.379 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.349e-05/0.2405, allocations: 11.94 kB / 448.3 MB, free: 5.367 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.2408, allocations: 27.83 kB / 448.3 MB, free: 5.34 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.2409, allocations: 8 kB / 448.3 MB, free: 5.332 MB / 282.8 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.0002557/0.2411, allocations: 137.5 kB / 448.5 MB, free: 5.188 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004057/0.2416, allocations: 85.55 kB / 448.5 MB, free: 5.098 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001807/0.2418, allocations: 20.7 kB / 448.6 MB, free: 5.078 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.2418, allocations: 8 kB / 448.6 MB, free: 5.07 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.2418, allocations: 0 / 448.6 MB, free: 5.07 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.2419, allocations: 0 / 448.6 MB, free: 5.07 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005871/0.2425, allocations: 205.5 kB / 448.8 MB, free: 4.82 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.2425, allocations: 4 kB / 448.8 MB, free: 4.816 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.243, allocations: 43.84 kB / 448.8 MB, free: 4.773 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.5e-05/0.2431, allocations: 3.953 kB / 448.8 MB, free: 4.77 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.2431, allocations: 12 kB / 448.8 MB, free: 4.758 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.2431, allocations: 0 / 448.8 MB, free: 4.758 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2432, allocations: 0 / 448.8 MB, free: 4.758 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2444, allocations: 426.8 kB / 449.2 MB, free: 4.309 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-05/0.2445, allocations: 85.02 kB / 449.3 MB, free: 4.207 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.2446, allocations: 4 kB / 449.3 MB, free: 4.203 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003952/0.245, allocations: 11.98 kB / 449.3 MB, free: 4.191 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.2451, allocations: 0 / 449.3 MB, free: 4.191 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.2451, allocations: 12.06 kB / 449.4 MB, free: 4.18 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001199/0.2453, allocations: 99.2 kB / 449.5 MB, free: 4.082 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.262e-06/0.2453, allocations: 0 / 449.5 MB, free: 4.082 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0008419/0.2461, allocations: 31.91 kB / 449.5 MB, free: 4.051 MB / 282.8 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.0001773/0.2464, allocations: 103.2 kB / 449.6 MB, free: 3.938 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0007936/0.2472, allocations: 123.8 kB / 449.7 MB, free: 3.816 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2472, allocations: 96 / 449.7 MB, free: 3.816 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.2475, allocations: 40.8 kB / 449.7 MB, free: 3.777 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008545/0.2484, allocations: 59.95 kB / 449.8 MB, free: 3.719 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.25, allocations: 0.4916 MB / 450.3 MB, free: 3.188 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2503, allocations: 0.7166 MB / 451 MB, free: 2.445 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2505, allocations: 23.42 kB / 451 MB, free: 2.422 MB / 282.8 MB Notification: Performance of SimCode: time 2.084e-06/0.2505, allocations: 0 / 451 MB, free: 2.422 MB / 282.8 MB Notification: Performance of Templates: time 0.006604/0.2571, allocations: 1.473 MB / 452.5 MB, free: 0.957 MB / 282.8 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches