Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.0008923/0.0008924, allocations: 175.1 kB / 16.12 MB, free: 5.695 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.203/1.203, allocations: 205 MB / 221.9 MB, free: 9.164 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.0006684/0.0006684, allocations: 97.48 kB / 269.9 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.06204/0.06204, allocations: 12.58 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 16 kB / 391.2 MB, free: 66.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06847/0.06881, allocations: 49.98 MB / 441.1 MB, free: 16.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001765/0.07061, allocations: 1.719 MB / 442.8 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00063/0.07126, allocations: 0.562 MB / 443.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.384e-05/0.07135, allocations: 3.938 kB / 443.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.542e-05/0.07146, allocations: 15.92 kB / 443.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.07157, allocations: 15.84 kB / 443.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.07175, allocations: 55.89 kB / 443.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000104/0.07186, allocations: 115.6 kB / 443.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.07198, allocations: 53.05 kB / 443.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.461e-05/0.07204, allocations: 39.8 kB / 443.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.07211, allocations: 47.7 kB / 443.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.07213, allocations: 8 kB / 443.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.478e-05/0.07215, allocations: 4 kB / 443.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.07218, allocations: 19.86 kB / 443.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.123e-05/0.07222, allocations: 51.73 kB / 443.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.89e-05/0.07233, allocations: 107.8 kB / 443.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.07234, allocations: 4 kB / 443.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.07235, allocations: 0 / 443.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.07236, allocations: 0 / 443.9 MB, free: 13.48 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004014/0.07276, allocations: 419.1 kB / 444.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.0728, allocations: 12.03 kB / 444.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.054e-05/0.07284, allocations: 46.73 kB / 444.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.07287, allocations: 16.75 kB / 444.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.07301, allocations: 204.1 kB / 444.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.07303, allocations: 12.38 kB / 444.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.07306, allocations: 12.38 kB / 444.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.07344, allocations: 266.6 kB / 444.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.07346, allocations: 3.984 kB / 444.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.07348, allocations: 4 kB / 444.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.07349, allocations: 4 kB / 444.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.07371, allocations: 99.88 kB / 445 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004148/0.07414, allocations: 0.592 MB / 445.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.07442, allocations: 159.8 kB / 445.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.07456, allocations: 82.61 kB / 445.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.07459, allocations: 4 kB / 445.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.344e-05/0.07461, allocations: 34.56 kB / 445.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.07462, allocations: 4 kB / 445.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004467/0.07507, allocations: 197.3 kB / 446.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.07512, allocations: 118.9 kB / 446.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.8e-05/0.07518, allocations: 131.4 kB / 446.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.0752, allocations: 33.69 kB / 446.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.144e-05/0.07524, allocations: 108 kB / 446.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.07526, allocations: 27.66 kB / 446.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.07529, allocations: 21.7 kB / 446.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.07534, allocations: 322.8 kB / 446.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.07544, allocations: 43.97 kB / 446.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.07557, allocations: 141.7 kB / 447 MB, free: 10.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.0758, allocations: 205.4 kB / 447.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.07581, allocations: 0 / 447.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000302/0.07611, allocations: 205.6 kB / 447.4 MB, free: 9.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.07614, allocations: 8 kB / 447.4 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.07615, allocations: 4 kB / 447.4 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.07616, allocations: 4 kB / 447.4 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.0763, allocations: 47.91 kB / 447.5 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.07632, allocations: 8.312 kB / 447.5 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.351e-05/0.07641, allocations: 23.89 kB / 447.5 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.07643, allocations: 8 kB / 447.5 MB, free: 9.5 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.168e-05/0.0765, allocations: 142.6 kB / 447.7 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.07662, allocations: 89.53 kB / 447.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.07669, allocations: 16.94 kB / 447.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.0767, allocations: 4 kB / 447.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.07671, allocations: 3.984 kB / 447.8 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.07672, allocations: 0 / 447.8 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.07691, allocations: 213.4 kB / 448 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.07692, allocations: 0 / 448 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.07708, allocations: 39.92 kB / 448 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.07709, allocations: 7.984 kB / 448 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.07711, allocations: 4 kB / 448 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.07712, allocations: 7.938 kB / 448 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.07712, allocations: 0 / 448 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.07753, allocations: 392 kB / 448.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.302e-05/0.07757, allocations: 96.88 kB / 448.5 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.07759, allocations: 4 kB / 448.5 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.07773, allocations: 12.06 kB / 448.5 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.07776, allocations: 11.98 kB / 448.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.07777, allocations: 4 kB / 448.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.07782, allocations: 103.3 kB / 448.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07782, allocations: 0 / 448.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.07811, allocations: 24 kB / 448.7 MB, free: 8.246 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.0005391/0.07865, allocations: 0.9339 MB / 449.6 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.07892, allocations: 132.7 kB / 449.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.07893, allocations: 0 / 449.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.74e-05/0.07904, allocations: 39.91 kB / 449.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.07945, allocations: 44.3 kB / 449.8 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.08106, allocations: 2.127 MB / 451.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.08119, allocations: 0.72 MB / 452.7 MB, free: 4.016 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.319e-05/0.08125, allocations: 13.08 kB / 452.7 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.0813, allocations: 31.44 kB / 452.7 MB, free: 3.973 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08131, allocations: 0 / 452.7 MB, free: 3.973 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1417/0.223, allocations: 2.442 MB / 455.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.2233, allocations: 260.2 kB / 455.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.156, allocations: 4 kB / 455.4 MB, free: 1.246 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches