Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",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.001031/0.001031, allocations: 175.7 kB / 15.82 MB, free: 6.305 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.668/1.668, allocations: 205.4 MB / 222 MB, free: 13.83 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.0008518/0.0008518, allocations: 98.22 kB / 270.3 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.07538/0.07538, allocations: 12.59 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004354/0.0004353, allocations: 16.31 kB / 392.1 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1161, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.002515/0.1187, allocations: 1.537 MB / 444 MB, free: 9.293 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.1196, allocations: 472 kB / 444.5 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.1197, allocations: 0 / 444.5 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.864e-05/0.1198, allocations: 15.92 kB / 444.5 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.838e-05/0.1199, allocations: 15.86 kB / 444.5 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.12, allocations: 23.97 kB / 444.5 MB, free: 8.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.1201, allocations: 91.59 kB / 444.6 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.1203, allocations: 38.09 kB / 444.7 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.926e-05/0.1203, allocations: 27.88 kB / 444.7 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.1204, allocations: 39.78 kB / 444.7 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.1204, allocations: 4 kB / 444.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.794e-05/0.1205, allocations: 4 kB / 444.7 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.1205, allocations: 19.98 kB / 444.8 MB, free: 8.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.836e-05/0.1205, allocations: 37.64 kB / 444.8 MB, free: 8.508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.551e-05/0.1206, allocations: 76.06 kB / 444.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1206, allocations: 0 / 444.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1206, allocations: 0 / 444.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1207, allocations: 3.938 kB / 444.9 MB, free: 8.43 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.0004981/0.1212, allocations: 395.1 kB / 445.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.1212, allocations: 8.031 kB / 445.3 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.1213, allocations: 46.55 kB / 445.3 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.1213, allocations: 11.91 kB / 445.3 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.1215, allocations: 190.9 kB / 445.5 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.1215, allocations: 8.188 kB / 445.5 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.1216, allocations: 11.91 kB / 445.5 MB, free: 7.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.1219, allocations: 128.4 kB / 445.7 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1219, allocations: 0 / 445.7 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1219, allocations: 4 kB / 445.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.122, allocations: 7.984 kB / 445.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.1222, allocations: 79.91 kB / 445.8 MB, free: 7.453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006437/0.1228, allocations: 0.5249 MB / 446.3 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.1231, allocations: 82.55 kB / 446.4 MB, free: 6.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.1232, allocations: 44.83 kB / 446.4 MB, free: 6.723 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.1232, allocations: 4 kB / 446.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1232, allocations: 34.56 kB / 446.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1232, allocations: 0 / 446.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004013/0.1237, allocations: 149.6 kB / 446.6 MB, free: 6.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.1237, allocations: 51.41 kB / 446.6 MB, free: 6.461 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.7e-05/0.1238, allocations: 125.8 kB / 446.8 MB, free: 6.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.1238, allocations: 29.7 kB / 446.8 MB, free: 6.293 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.644e-05/0.1238, allocations: 119.8 kB / 446.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.1239, allocations: 23.66 kB / 446.9 MB, free: 6.148 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.1239, allocations: 0 / 446.9 MB, free: 6.148 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.259e-05/0.1239, allocations: 326.8 kB / 447.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.124, allocations: 39.97 kB / 447.3 MB, free: 5.781 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.1242, allocations: 72.27 kB / 447.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1243, allocations: 47.92 kB / 447.4 MB, free: 5.648 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1243, allocations: 0 / 447.4 MB, free: 5.648 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002567/0.1245, allocations: 153.4 kB / 447.6 MB, free: 5.492 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1246, allocations: 4 kB / 447.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1246, allocations: 4 kB / 447.6 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1246, allocations: 0 / 447.6 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1248, allocations: 31.98 kB / 447.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1248, allocations: 0 / 447.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.685e-05/0.1249, allocations: 31.86 kB / 447.6 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.1249, allocations: 0 / 447.6 MB, free: 5.422 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 7.129e-05/0.1249, allocations: 129.6 kB / 447.7 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.125, allocations: 11.84 kB / 447.8 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.125, allocations: 12.36 kB / 447.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.125, allocations: 0 / 447.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.125, allocations: 4 kB / 447.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.125, allocations: 7.984 kB / 447.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.1252, allocations: 193.6 kB / 448 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1252, allocations: 8 kB / 448 MB, free: 5.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.1253, allocations: 19.98 kB / 448 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1253, allocations: 0 / 448 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.1254, allocations: 8 kB / 448 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1254, allocations: 0 / 448 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1254, allocations: 3.938 kB / 448 MB, free: 4.973 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003775/0.1258, allocations: 251.6 kB / 448.3 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.715e-05/0.1258, allocations: 81.02 kB / 448.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.1258, allocations: 0 / 448.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.1259, allocations: 16.03 kB / 448.4 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.126, allocations: 11.98 kB / 448.4 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.126, allocations: 0 / 448.4 MB, free: 4.586 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.299e-05/0.126, allocations: 99.2 kB / 448.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.126, allocations: 0 / 448.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.1263, allocations: 20 kB / 448.5 MB, free: 4.469 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.0005189/0.1268, allocations: 0.7786 MB / 449.3 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000258/0.127, allocations: 103.9 kB / 449.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1271, allocations: 288 / 449.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.1272, allocations: 44.17 kB / 449.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.1275, allocations: 25.05 kB / 449.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.1288, allocations: 0.8803 MB / 450.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.129, allocations: 0.7082 MB / 451 MB, free: 1.816 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.277e-05/0.129, allocations: 8.422 kB / 451 MB, free: 1.809 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.1291, allocations: 27.44 kB / 451.1 MB, free: 1.781 MB / 282.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1291, allocations: 0 / 451.1 MB, free: 1.781 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01209/0.1412, allocations: 2.056 MB / 453.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.1413, allocations: 209 kB / 453.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.784, allocations: 0 / 453.3 MB, free: 15.49 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat