Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008706/0.0008709, allocations: 178.7 kB / 16.11 MB, free: 5.57 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.227/1.227, allocations: 205 MB / 221.9 MB, free: 9.137 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.0007382/0.0007383, allocations: 94.28 kB / 269.9 MB, free: 8.668 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.06506/0.06506, allocations: 12.57 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 16.38 kB / 391.1 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0646/0.06495, allocations: 49.99 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001632/0.06661, allocations: 1.738 MB / 442.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006722/0.0673, allocations: 0.5969 MB / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.59e-05/0.0674, allocations: 0 / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.06751, allocations: 19.86 kB / 443.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.06765, allocations: 27.84 kB / 443.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.06788, allocations: 59.88 kB / 443.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.068, allocations: 127.5 kB / 443.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.06812, allocations: 53.52 kB / 443.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.243e-05/0.06818, allocations: 43.78 kB / 443.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.754e-05/0.06824, allocations: 51.7 kB / 443.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.06827, allocations: 4 kB / 443.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.666e-05/0.06829, allocations: 4 kB / 443.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.319e-05/0.06834, allocations: 23.86 kB / 443.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.259e-05/0.06839, allocations: 59.61 kB / 443.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.0685, allocations: 123.8 kB / 444.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.06851, allocations: 0 / 444.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.06852, allocations: 11.88 kB / 444.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.06852, allocations: 0 / 444.1 MB, free: 13.34 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004231/0.06895, allocations: 435 kB / 444.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.06899, allocations: 8.031 kB / 444.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.907e-05/0.06902, allocations: 46.73 kB / 444.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.06906, allocations: 20.66 kB / 444.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.06922, allocations: 223.9 kB / 444.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.06924, allocations: 12.38 kB / 444.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.06927, allocations: 12.38 kB / 444.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.06966, allocations: 260.5 kB / 445.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.06968, allocations: 0 / 445.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.0697, allocations: 4 kB / 445.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.06971, allocations: 4 kB / 445.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.06994, allocations: 99.88 kB / 445.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004168/0.07037, allocations: 0.6114 MB / 445.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.07066, allocations: 155.8 kB / 445.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.0708, allocations: 78.64 kB / 446 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.07084, allocations: 8 kB / 446 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.146e-05/0.07085, allocations: 38.55 kB / 446.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.07086, allocations: 0 / 446.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004455/0.07131, allocations: 205.3 kB / 446.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.07135, allocations: 114.8 kB / 446.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.627e-05/0.07145, allocations: 159.2 kB / 446.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.07146, allocations: 29.7 kB / 446.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.07151, allocations: 116.4 kB / 446.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.07153, allocations: 27.69 kB / 446.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/0.07156, allocations: 25.7 kB / 446.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.725e-05/0.0716, allocations: 322.8 kB / 447 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.07171, allocations: 40.34 kB / 447.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.07185, allocations: 137.7 kB / 447.2 MB, free: 9.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.07208, allocations: 201.4 kB / 447.4 MB, free: 9.598 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.07209, allocations: 4 kB / 447.4 MB, free: 9.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00031/0.07241, allocations: 209.1 kB / 447.6 MB, free: 9.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.07244, allocations: 8 kB / 447.6 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.07245, allocations: 4.469 kB / 447.6 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.07246, allocations: 8 kB / 447.6 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.07261, allocations: 51.84 kB / 447.7 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.07262, allocations: 7.938 kB / 447.7 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.07273, allocations: 27.83 kB / 447.7 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.07274, allocations: 8 kB / 447.7 MB, free: 9.27 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.767e-05/0.07281, allocations: 137.7 kB / 447.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.07294, allocations: 93.44 kB / 447.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.601e-05/0.07302, allocations: 24.7 kB / 448 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.07303, allocations: 0 / 448 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.07304, allocations: 0 / 448 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.07305, allocations: 4 kB / 448 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.07327, allocations: 213.5 kB / 448.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.07328, allocations: 0 / 448.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.07345, allocations: 35.92 kB / 448.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.07346, allocations: 4 kB / 448.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.07348, allocations: 7.984 kB / 448.2 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.07349, allocations: 4 kB / 448.2 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.07349, allocations: 0 / 448.2 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004138/0.07391, allocations: 403.3 kB / 448.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.024e-05/0.07397, allocations: 104.8 kB / 448.7 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.074, allocations: 8 kB / 448.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.07414, allocations: 8 kB / 448.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.07418, allocations: 12.05 kB / 448.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.07419, allocations: 4 kB / 448.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.07425, allocations: 119.2 kB / 448.9 MB, free: 8.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07426, allocations: 0 / 448.9 MB, free: 8.008 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002958/0.07456, allocations: 24 kB / 448.9 MB, free: 7.984 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005277/0.07509, allocations: 0.9326 MB / 449.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002664/0.07537, allocations: 144.7 kB / 450 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.07538, allocations: 0 / 450 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.737e-05/0.07547, allocations: 32.05 kB / 450 MB, free: 6.852 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.07593, allocations: 59.94 kB / 450.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.07772, allocations: 2.188 MB / 452.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.07788, allocations: 0.7204 MB / 453 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.164e-05/0.07794, allocations: 13.42 kB / 453 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.078, allocations: 39.42 kB / 453 MB, free: 3.625 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.07801, allocations: 0 / 453 MB, free: 3.625 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/0.232, allocations: 2.632 MB / 455.7 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/0.2323, allocations: 257 kB / 455.9 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.938/2.171, allocations: 3.938 kB / 455.9 MB, free: 0.7188 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches