Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001212/0.001211, allocations: 169.8 kB / 16.14 MB, free: 5.656 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.469/1.469, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0009083/0.0009085, allocations: 98.59 kB / 270.7 MB, free: 8.234 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.09243/0.09243, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004275/0.0004277, allocations: 16 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08379, allocations: 50.36 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002023/0.08586, allocations: 1.695 MB / 444.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008283/0.08672, allocations: 0.5308 MB / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.08687, allocations: 0 / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.087, allocations: 15.86 kB / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.869e-05/0.0871, allocations: 19.84 kB / 445.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.08744, allocations: 59.94 kB / 445.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.0876, allocations: 115.6 kB / 445.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.08776, allocations: 48.88 kB / 445.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.699e-05/0.08785, allocations: 35.8 kB / 445.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.656e-05/0.08794, allocations: 47.72 kB / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.08796, allocations: 4 kB / 445.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.08799, allocations: 4 kB / 445.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.08802, allocations: 23.91 kB / 445.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.968e-05/0.0881, allocations: 77.38 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.08825, allocations: 107.8 kB / 445.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.08826, allocations: 3.938 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.08826, allocations: 3.938 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.08827, allocations: 0 / 445.9 MB, free: 12.52 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005276/0.08881, allocations: 411.1 kB / 446.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.08886, allocations: 8.031 kB / 446.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.843e-05/0.08892, allocations: 46.73 kB / 446.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.08896, allocations: 16.75 kB / 446.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.08915, allocations: 204.1 kB / 446.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.08917, allocations: 8.375 kB / 446.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.08921, allocations: 20.38 kB / 446.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004478/0.08967, allocations: 238.7 kB / 446.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.0897, allocations: 7.906 kB / 446.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.08972, allocations: 4 kB / 446.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.08973, allocations: 4 kB / 446.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.08997, allocations: 91.88 kB / 446.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000505/0.09048, allocations: 0.592 MB / 447.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.09072, allocations: 151.9 kB / 447.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.09088, allocations: 86.58 kB / 447.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.09091, allocations: 0 / 447.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.09093, allocations: 38.56 kB / 447.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.09094, allocations: 0 / 447.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004793/0.09142, allocations: 197.3 kB / 448 MB, free: 10.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.09148, allocations: 106.9 kB / 448.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.675e-05/0.09156, allocations: 139.6 kB / 448.2 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.09158, allocations: 29.7 kB / 448.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.09163, allocations: 115.8 kB / 448.4 MB, free: 9.754 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.09166, allocations: 23.72 kB / 448.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.09168, allocations: 384 / 448.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.09175, allocations: 322.8 kB / 448.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.09186, allocations: 39.97 kB / 448.8 MB, free: 9.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.09199, allocations: 149.2 kB / 448.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.09224, allocations: 196.6 kB / 449.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.09225, allocations: 3.938 kB / 449.1 MB, free: 8.934 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003428/0.0926, allocations: 193.2 kB / 449.3 MB, free: 8.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.09262, allocations: 8 kB / 449.3 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.09264, allocations: 7.938 kB / 449.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.09266, allocations: 4 kB / 449.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.09283, allocations: 56.34 kB / 449.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.09285, allocations: 4 kB / 449.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.09296, allocations: 19.89 kB / 449.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.09298, allocations: 15.94 kB / 449.4 MB, free: 8.625 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 7.841e-05/0.09307, allocations: 126.7 kB / 449.5 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.09319, allocations: 81.53 kB / 449.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.09323, allocations: 20.66 kB / 449.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.09325, allocations: 7.984 kB / 449.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.09326, allocations: 0 / 449.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.09327, allocations: 0 / 449.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.09347, allocations: 205.5 kB / 449.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.09348, allocations: 0 / 449.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.09365, allocations: 39.92 kB / 449.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.09367, allocations: 0 / 449.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.09368, allocations: 3.938 kB / 449.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.09369, allocations: 8 kB / 449.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.0937, allocations: 4 kB / 449.9 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.09415, allocations: 395.4 kB / 450.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.705e-05/0.09419, allocations: 88.98 kB / 450.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.09422, allocations: 7.938 kB / 450.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.09434, allocations: 11.98 kB / 450.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.09439, allocations: 4 kB / 450.4 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.0944, allocations: 4 kB / 450.4 MB, free: 7.535 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.023e-05/0.09445, allocations: 111.2 kB / 450.5 MB, free: 7.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09445, allocations: 0 / 450.5 MB, free: 7.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002844/0.09474, allocations: 27.91 kB / 450.5 MB, free: 7.398 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 (14): * Single equations (assignments): 14 * 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.0005742/0.09532, allocations: 0.9166 MB / 451.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002801/0.09561, allocations: 139.9 kB / 451.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.09563, allocations: 4 kB / 451.6 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.093e-05/0.09572, allocations: 32.86 kB / 451.6 MB, free: 6.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.09621, allocations: 51.95 kB / 451.7 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.09799, allocations: 2.14 MB / 453.8 MB, free: 3.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/0.09814, allocations: 0.7123 MB / 454.5 MB, free: 3.176 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.279e-05/0.09819, allocations: 8.656 kB / 454.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.09826, allocations: 31.42 kB / 454.6 MB, free: 3.137 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09826, allocations: 0 / 454.6 MB, free: 3.137 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01251/0.1108, allocations: 2.425 MB / 457 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.111, allocations: 254.1 kB / 457.2 MB, free: 452 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/1.871, allocations: 8 kB / 457.2 MB, free: 444 kB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat