Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.00295/0.002949, allocations: 187.4 kB / 16.45 MB, free: 5.578 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.5/4.5, allocations: 205.4 MB / 222.6 MB, free: 13.82 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.006154/0.006154, allocations: 98.81 kB / 270.9 MB, free: 13.36 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.2623/0.2623, allocations: 12.6 MB / 331.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009607/0.0009612, allocations: 15.44 kB / 392 MB, free: 54.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2245, allocations: 50.37 MB / 442.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.003755/0.2284, allocations: 1.528 MB / 443.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.2301, allocations: 472.2 kB / 444.3 MB, free: 9.594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.2303, allocations: 0 / 444.3 MB, free: 9.594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.548e-05/0.2304, allocations: 11.86 kB / 444.3 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.2306, allocations: 23.95 kB / 444.4 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.2308, allocations: 27.97 kB / 444.4 MB, free: 9.531 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002425/0.2311, allocations: 71.84 kB / 444.5 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2313, allocations: 33.55 kB / 444.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2314, allocations: 35.8 kB / 444.5 MB, free: 9.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.2315, allocations: 35.84 kB / 444.6 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.2316, allocations: 4 kB / 444.6 MB, free: 9.355 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.089e-05/0.2316, allocations: 4 kB / 444.6 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.2317, allocations: 15.92 kB / 444.6 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.436e-05/0.2318, allocations: 41.64 kB / 444.6 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.232, allocations: 68.64 kB / 444.7 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.232, allocations: 0 / 444.7 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.232, allocations: 3.938 kB / 444.7 MB, free: 9.219 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.232, allocations: 4 kB / 444.7 MB, free: 9.215 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0009278/0.233, allocations: 395.2 kB / 445.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.2331, allocations: 12.03 kB / 445.1 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.2332, allocations: 11.81 kB / 445.1 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.2335, allocations: 198.9 kB / 445.3 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.2335, allocations: 8.188 kB / 445.3 MB, free: 8.516 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.2336, allocations: 11.91 kB / 445.3 MB, free: 8.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.2341, allocations: 124.4 kB / 445.4 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.2342, allocations: 4 kB / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.2342, allocations: 0 / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2342, allocations: 4 kB / 445.4 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005228/0.2348, allocations: 83.88 kB / 445.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.236, allocations: 0.5248 MB / 446.1 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.2365, allocations: 86.55 kB / 446.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2365, allocations: 0 / 446.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.2366, allocations: 34.56 kB / 446.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 3.035e-06/0.2366, allocations: 0 / 446.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.000937/0.2375, allocations: 141.7 kB / 446.3 MB, free: 7.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.2376, allocations: 55.41 kB / 446.4 MB, free: 7.344 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.2378, allocations: 129.8 kB / 446.5 MB, free: 7.207 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.2379, allocations: 29.7 kB / 446.5 MB, free: 7.172 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.238, allocations: 178.2 kB / 446.7 MB, free: 6.996 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.2381, allocations: 31.64 kB / 446.7 MB, free: 6.965 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.257e-05/0.2381, allocations: 4 kB / 446.7 MB, free: 6.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.2382, allocations: 322.8 kB / 447 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.2385, allocations: 35.92 kB / 447.1 MB, free: 6.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.2388, allocations: 78.02 kB / 447.2 MB, free: 6.512 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.2391, allocations: 43.91 kB / 447.2 MB, free: 6.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.2391, allocations: 0 / 447.2 MB, free: 6.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0007027/0.2399, allocations: 145.4 kB / 447.3 MB, free: 6.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.2399, allocations: 4 kB / 447.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.2399, allocations: 7.938 kB / 447.4 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.24, allocations: 128 / 447.4 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.2404, allocations: 43.91 kB / 447.4 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.2404, allocations: 0 / 447.4 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.2406, allocations: 19.92 kB / 447.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.2407, allocations: 4 kB / 447.4 MB, free: 6.242 MB / 282.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001647/0.2409, allocations: 121.6 kB / 447.5 MB, free: 6.113 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2451, allocations: 7.906 kB / 447.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.2453, allocations: 24.31 kB / 447.6 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.2453, allocations: 0 / 447.6 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.2454, allocations: 0 / 447.6 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.2454, allocations: 0 / 447.6 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005067/0.2459, allocations: 201.6 kB / 447.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.2459, allocations: 0 / 447.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.2464, allocations: 23.98 kB / 447.8 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.2465, allocations: 0 / 447.8 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.2465, allocations: 3.984 kB / 447.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.2466, allocations: 8 kB / 447.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.2466, allocations: 0 / 447.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.2477, allocations: 251.2 kB / 448 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.2478, allocations: 85.05 kB / 448.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.2479, allocations: 4 kB / 448.1 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.2482, allocations: 12.03 kB / 448.1 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.2483, allocations: 0 / 448.1 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.2483, allocations: 4 kB / 448.1 MB, free: 5.418 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.2485, allocations: 99.27 kB / 448.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.2485, allocations: 0 / 448.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007412/0.2492, allocations: 27.84 kB / 448.3 MB, free: 5.293 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001665/0.2495, allocations: 95.25 kB / 448.4 MB, free: 5.188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006911/0.2502, allocations: 92.09 kB / 448.5 MB, free: 5.098 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.2502, allocations: 4.062 kB / 448.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002615/0.2505, allocations: 47.91 kB / 448.5 MB, free: 5.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/0.2511, allocations: 19.91 kB / 448.5 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2525, allocations: 472.9 kB / 449 MB, free: 4.531 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.2528, allocations: 0.7043 MB / 449.7 MB, free: 3.801 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.253, allocations: 11.44 kB / 449.7 MB, free: 3.789 MB / 282.7 MB Notification: Performance of SimCode: time 2.154e-06/0.253, allocations: 0 / 449.7 MB, free: 3.789 MB / 282.7 MB Notification: Performance of Templates: time 0.005609/0.2586, allocations: 1.219 MB / 450.9 MB, free: 2.574 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches