Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.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) 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.Electrical.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",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.002236/0.002236, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001155, allocations: 91.36 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.584e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.55 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.4766, allocations: 84.11 MB / 446.5 MB, free: 2.105 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.4769, allocations: 69.22 kB / 446.6 MB, free: 2.039 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.129/0.6059, allocations: 31.39 MB / 478 MB, free: 2.582 MB / 363.1 MB Notification: Performance of FrontEnd: time 6.302e-06/0.606, allocations: 4 kB / 478 MB, free: 2.578 MB / 363.1 MB Notification: Performance of Transformations before backend: time 0.0002006/0.6062, allocations: 63.88 kB / 478.1 MB, free: 2.516 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.007583/0.6138, allocations: 1.954 MB / 480 MB, free: 0.5078 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.6139, allocations: 8.031 kB / 480 MB, free: 0.5 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.6155, allocations: 257.2 kB / 480.3 MB, free: 252 kB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004283/0.6199, allocations: 1.246 MB / 481.5 MB, free: 14.95 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.6201, allocations: 76 kB / 481.6 MB, free: 14.88 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000898/0.621, allocations: 135.9 kB / 481.7 MB, free: 14.75 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006383/0.6274, allocations: 1.762 MB / 483.5 MB, free: 12.98 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008485/0.636, allocations: 2.372 MB / 485.9 MB, free: 10.46 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.545e-05/0.6361, allocations: 0 / 485.9 MB, free: 10.46 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/0.6364, allocations: 11.97 kB / 485.9 MB, free: 10.45 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.34e-05/0.6365, allocations: 52 kB / 485.9 MB, free: 10.4 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02191/0.6584, allocations: 7.296 MB / 493.2 MB, free: 2.906 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.6604, allocations: 1.224 MB / 494.4 MB, free: 1.547 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.6621, allocations: 0.5711 MB / 495 MB, free: 0.9727 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.505e-05/0.6622, allocations: 12.55 kB / 495 MB, free: 0.9609 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.6623, allocations: 43.11 kB / 495.1 MB, free: 0.9102 MB / 379.1 MB Notification: Performance of pre-optimization done (n=63): time 4.177e-06/0.6623, allocations: 0 / 495.1 MB, free: 0.9102 MB / 379.1 MB Notification: Performance of matching and sorting (n=65): time 0.00573/0.668, allocations: 1.994 MB / 497.1 MB, free: 14.85 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.6681, allocations: 59.97 kB / 497.1 MB, free: 14.78 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001536/0.6697, allocations: 0.648 MB / 497.8 MB, free: 14.13 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001688/0.6699, allocations: 25.7 kB / 497.8 MB, free: 14.1 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009082/0.6708, allocations: 0.9357 MB / 498.7 MB, free: 13.15 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003559/0.6712, allocations: 220.7 kB / 498.9 MB, free: 12.93 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-05/0.6712, allocations: 0 / 498.9 MB, free: 12.93 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.6714, allocations: 342.8 kB / 499.3 MB, free: 12.59 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000875/0.6723, allocations: 333.9 kB / 499.6 MB, free: 12.26 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.6734, allocations: 0.5436 MB / 0.4884 GB, free: 11.62 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.6745, allocations: 437.8 kB / 0.4888 GB, free: 11.2 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.6745, allocations: 7.938 kB / 0.4888 GB, free: 11.19 MB / 395.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002703/0.6772, allocations: 0.9955 MB / 0.4898 GB, free: 10.18 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.6773, allocations: 8 kB / 0.4898 GB, free: 10.18 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/0.6774, allocations: 8 kB / 0.4898 GB, free: 10.17 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004616/0.6779, allocations: 108.8 kB / 0.4899 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.6793, allocations: 179.8 kB / 0.4901 GB, free: 9.883 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003387/0.6827, allocations: 2.056 MB / 0.4921 GB, free: 7.711 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.6838, allocations: 27.97 kB / 0.4921 GB, free: 7.684 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.6839, allocations: 32 kB / 0.4922 GB, free: 7.652 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000292/0.6842, allocations: 129 kB / 0.4923 GB, free: 7.52 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002247/0.6865, allocations: 0.7876 MB / 0.4931 GB, free: 6.723 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.6868, allocations: 86.95 kB / 0.4932 GB, free: 6.637 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002374/0.6892, allocations: 0.8549 MB / 0.494 GB, free: 5.766 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.6893, allocations: 7.984 kB / 0.494 GB, free: 5.758 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.6893, allocations: 4 kB / 0.494 GB, free: 5.754 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.6893, allocations: 3.984 kB / 0.494 GB, free: 5.75 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00696/0.6963, allocations: 2.309 MB / 0.4963 GB, free: 3.375 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/0.6963, allocations: 4 kB / 0.4963 GB, free: 3.371 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009636/0.6973, allocations: 116 kB / 0.4964 GB, free: 3.258 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004081/0.6978, allocations: 100.6 kB / 0.4965 GB, free: 3.156 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.256e-05/0.6978, allocations: 8 kB / 0.4965 GB, free: 3.148 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003174/0.701, allocations: 2.005 MB / 0.4984 GB, free: 1.027 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.7011, allocations: 0 / 0.4984 GB, free: 1.027 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2743/0.9754, allocations: 1.389 MB / 0.4998 GB, free: 104.6 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000674/0.9762, allocations: 225.7 kB / 0.5 GB, free: 104.5 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.9763, allocations: 10.23 kB / 0.5 GB, free: 104.5 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007507/0.9771, allocations: 34.38 kB / 0.5 GB, free: 104.5 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.9773, allocations: 47.02 kB / 0.5001 GB, free: 104.5 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.9774, allocations: 23.22 kB / 0.5001 GB, free: 104.5 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009403/0.9783, allocations: 0.4921 MB / 0.5006 GB, free: 104.4 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9783, allocations: 0 / 0.5006 GB, free: 104.4 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001653/0.98, allocations: 284.7 kB / 0.5009 GB, free: 104.4 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003449/0.9835, allocations: 2.322 MB / 0.5031 GB, free: 103.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.9858, allocations: 0.9913 MB / 0.5041 GB, free: 103.1 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.9859, allocations: 0 / 0.5041 GB, free: 103.1 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.9871, allocations: 0.5808 MB / 0.5047 GB, free: 102.9 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.9889, allocations: 183.4 kB / 0.5048 GB, free: 102.9 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008921/0.9979, allocations: 2.939 MB / 0.5077 GB, free: 102.2 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00252/1, allocations: 1.719 MB / 0.5094 GB, free: 101.5 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.002, allocations: 0.6427 MB / 0.51 GB, free: 101.5 MB / 395.1 MB Notification: Performance of SimCode: time 1.342e-06/1.002, allocations: 3.406 kB / 0.51 GB, free: 101.5 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.465/4.467, allocations: 36.6 MB / 0.5458 GB, free: 91.05 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors_res.mat does not exist to compare? outputFormat=mat