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.0009553/0.0009553, allocations: 172.4 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.446/1.446, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0007789/0.0007788, allocations: 94.28 kB / 270.7 MB, free: 8.246 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.08076/0.08076, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003932, allocations: 8 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 50.38 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001781/0.1028, allocations: 1.575 MB / 444.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006379/0.1034, allocations: 483.8 kB / 445.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.444e-05/0.1035, allocations: 0 / 445.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1036, allocations: 11.92 kB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.209e-05/0.1037, allocations: 15.86 kB / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.1039, allocations: 31.95 kB / 445.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.104, allocations: 99.59 kB / 445.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.1041, allocations: 29.61 kB / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.322e-05/0.1042, allocations: 39.8 kB / 445.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.133e-05/0.1043, allocations: 47.77 kB / 445.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.1043, allocations: 4 kB / 445.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.807e-05/0.1043, allocations: 4 kB / 445.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.1044, allocations: 15.92 kB / 445.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.959e-05/0.1044, allocations: 65.44 kB / 445.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.1046, allocations: 87.66 kB / 445.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1046, allocations: 4 kB / 445.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1046, allocations: 0 / 445.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1046, allocations: 0 / 445.6 MB, free: 12.81 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004776/0.1051, allocations: 399.4 kB / 446 MB, free: 12.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1051, allocations: 12.02 kB / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.569e-05/0.1052, allocations: 38.75 kB / 446.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.1052, allocations: 8.844 kB / 446.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.1054, allocations: 192.1 kB / 446.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.1054, allocations: 12.5 kB / 446.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.1054, allocations: 16.12 kB / 446.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.1057, allocations: 131.2 kB / 446.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1057, allocations: 0 / 446.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.1057, allocations: 3.984 kB / 446.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1057, allocations: 4 kB / 446.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.1059, allocations: 79.95 kB / 446.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005579/0.1065, allocations: 0.5401 MB / 447 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.1067, allocations: 82.53 kB / 447.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1068, allocations: 48.83 kB / 447.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1068, allocations: 4 kB / 447.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.1069, allocations: 34.56 kB / 447.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1069, allocations: 0 / 447.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003871/0.1073, allocations: 141.8 kB / 447.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.1073, allocations: 55.34 kB / 447.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.473e-05/0.1074, allocations: 127.2 kB / 447.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1074, allocations: 33.69 kB / 447.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.1075, allocations: 115.8 kB / 447.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.1075, allocations: 23.62 kB / 447.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.1075, allocations: 0 / 447.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.255e-05/0.1076, allocations: 330.8 kB / 448 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1077, allocations: 35.97 kB / 448.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.1078, allocations: 76.2 kB / 448.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.108, allocations: 112.2 kB / 448.2 MB, free: 9.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1081, allocations: 4 kB / 448.2 MB, free: 9.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00026/0.1083, allocations: 141.4 kB / 448.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1083, allocations: 8.219 kB / 448.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1084, allocations: 3.938 kB / 448.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1084, allocations: 4 kB / 448.4 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.1085, allocations: 39.91 kB / 448.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1086, allocations: 0 / 448.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.271e-05/0.1086, allocations: 15.94 kB / 448.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.639e-06/0.1087, allocations: 4 kB / 448.5 MB, free: 9.699 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.834e-05/0.1087, allocations: 133.7 kB / 448.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.1088, allocations: 7.906 kB / 448.6 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.1088, allocations: 12.38 kB / 448.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1088, allocations: 0 / 448.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1088, allocations: 0 / 448.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1088, allocations: 0 / 448.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.109, allocations: 201.5 kB / 448.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.109, allocations: 0 / 448.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.1092, allocations: 23.98 kB / 448.8 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1092, allocations: 4 kB / 448.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1092, allocations: 0 / 448.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1092, allocations: 0 / 448.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1092, allocations: 4.312 kB / 448.8 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003664/0.1096, allocations: 259.3 kB / 449.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.1096, allocations: 88.95 kB / 449.2 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.1097, allocations: 4 kB / 449.2 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.445e-05/0.1097, allocations: 8 kB / 449.2 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.1098, allocations: 3.984 kB / 449.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1098, allocations: 8 kB / 449.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.244e-05/0.1098, allocations: 103.8 kB / 449.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1099, allocations: 0 / 449.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.1101, allocations: 16 kB / 449.3 MB, free: 8.746 MB / 298.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 (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.0004863/0.1106, allocations: 0.7787 MB / 450.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.1108, allocations: 95.94 kB / 450.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1108, allocations: 0 / 450.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.454e-05/0.1109, allocations: 43.91 kB / 450.2 MB, free: 7.801 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.1113, allocations: 16.17 kB / 450.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.1129, allocations: 1.863 MB / 452.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.1131, allocations: 0.6965 MB / 452.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.02e-05/0.1132, allocations: 4.438 kB / 452.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.043e-05/0.1132, allocations: 31.42 kB / 452.8 MB, free: 5.059 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1132, allocations: 0 / 452.8 MB, free: 5.059 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01227/0.1255, allocations: 2.075 MB / 454.9 MB, free: 2.98 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/0.1258, allocations: 220.6 kB / 455.1 MB, free: 2.727 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/1.844, allocations: 0 / 455.1 MB, free: 2.727 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