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.001729/0.001734, allocations: 186.2 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.318/2.318, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001132/0.001132, allocations: 86.86 kB / 270.3 MB, free: 13.34 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.09846/0.09846, allocations: 12.61 MB / 331.1 MB, free: 10.26 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000542/0.0005423, allocations: 16.12 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.0964, allocations: 50.37 MB / 442.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.002281/0.09875, allocations: 1.519 MB / 444 MB, free: 9.258 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009781/0.09978, allocations: 476.1 kB / 444.5 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.09992, allocations: 0 / 444.5 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.871e-05/0.09998, allocations: 11.92 kB / 444.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.1001, allocations: 27.95 kB / 444.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001517/0.1003, allocations: 23.91 kB / 444.5 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.1005, allocations: 67.91 kB / 444.6 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1006, allocations: 34.08 kB / 444.6 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.299e-05/0.1007, allocations: 27.91 kB / 444.6 MB, free: 8.598 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.924e-05/0.1008, allocations: 39.78 kB / 444.7 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.1008, allocations: 4 kB / 444.7 MB, free: 8.555 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.286e-05/0.1009, allocations: 8 kB / 444.7 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.1009, allocations: 11.94 kB / 444.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.201e-05/0.1009, allocations: 37.7 kB / 444.7 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.101, allocations: 76 kB / 444.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1011, allocations: 0 / 444.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1011, allocations: 0 / 444.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1011, allocations: 0 / 444.8 MB, free: 8.418 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.0005963/0.1017, allocations: 403.1 kB / 445.2 MB, free: 7.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.1018, allocations: 8.031 kB / 445.2 MB, free: 7.969 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.1018, allocations: 46.53 kB / 445.3 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.1019, allocations: 7.906 kB / 445.3 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.102, allocations: 191 kB / 445.5 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1021, allocations: 8.125 kB / 445.5 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.1021, allocations: 11.91 kB / 445.5 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.1025, allocations: 132.4 kB / 445.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1025, allocations: 0 / 445.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.1026, allocations: 4 kB / 445.6 MB, free: 7.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1026, allocations: 4 kB / 445.6 MB, free: 7.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.103, allocations: 87.83 kB / 445.7 MB, free: 7.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008466/0.1038, allocations: 0.5132 MB / 446.2 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.1041, allocations: 90.59 kB / 446.3 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.1042, allocations: 0 / 446.3 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1042, allocations: 34.56 kB / 446.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.1042, allocations: 0 / 446.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006182/0.1049, allocations: 141.6 kB / 446.5 MB, free: 6.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.1049, allocations: 51.41 kB / 446.5 MB, free: 6.5 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.105, allocations: 137.7 kB / 446.7 MB, free: 6.355 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1051, allocations: 29.7 kB / 446.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.112e-05/0.1051, allocations: 119.8 kB / 446.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.1052, allocations: 27.64 kB / 446.8 MB, free: 6.172 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.635e-06/0.1052, allocations: 4 kB / 446.8 MB, free: 6.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.1053, allocations: 318.8 kB / 447.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.1054, allocations: 35.98 kB / 447.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1056, allocations: 72.27 kB / 447.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.1058, allocations: 55.91 kB / 447.3 MB, free: 5.672 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1058, allocations: 3.938 kB / 447.3 MB, free: 5.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004444/0.1063, allocations: 137.4 kB / 447.5 MB, free: 5.527 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1063, allocations: 12.11 kB / 447.5 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1063, allocations: 4 kB / 447.5 MB, free: 5.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.1064, allocations: 0 / 447.5 MB, free: 5.512 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.1066, allocations: 31.98 kB / 447.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.078e-06/0.1067, allocations: 3.938 kB / 447.5 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.1068, allocations: 23.83 kB / 447.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1068, allocations: 4 kB / 447.5 MB, free: 5.449 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 9.555e-05/0.1069, allocations: 129.6 kB / 447.7 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.107, allocations: 7.906 kB / 447.7 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.107, allocations: 12.38 kB / 447.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.107, allocations: 0 / 447.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1071, allocations: 4 kB / 447.7 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1071, allocations: 3.984 kB / 447.7 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.1073, allocations: 193.6 kB / 447.9 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1073, allocations: 0 / 447.9 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.1076, allocations: 27.98 kB / 447.9 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1076, allocations: 0 / 447.9 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.1076, allocations: 3.984 kB / 447.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1076, allocations: 7.938 kB / 447.9 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1077, allocations: 96 / 447.9 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.1083, allocations: 251.3 kB / 448.2 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.1083, allocations: 85.11 kB / 448.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.1083, allocations: 4 kB / 448.2 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.1085, allocations: 16.02 kB / 448.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.1086, allocations: 0 / 448.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1086, allocations: 8 kB / 448.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.041e-05/0.1087, allocations: 103.2 kB / 448.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1087, allocations: 0 / 448.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003476/0.109, allocations: 16 kB / 448.4 MB, free: 4.5 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.0007685/0.1098, allocations: 0.7829 MB / 449.2 MB, free: 3.688 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004153/0.1102, allocations: 95.92 kB / 449.3 MB, free: 3.594 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1103, allocations: 0 / 449.3 MB, free: 3.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.1104, allocations: 43.97 kB / 449.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.1108, allocations: 20.19 kB / 449.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.1129, allocations: 1.48 MB / 450.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.1131, allocations: 0.7082 MB / 451.5 MB, free: 1.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.426e-05/0.1132, allocations: 4.438 kB / 451.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.1133, allocations: 31.42 kB / 451.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.1133, allocations: 3.938 kB / 451.6 MB, free: 1.211 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.1395, allocations: 2.033 MB / 453.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003385/0.1399, allocations: 210.8 kB / 453.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.403/2.543, allocations: 0 / 453.8 MB, free: 14.94 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