Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001404, allocations: 93.97 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005094/0.0005099, allocations: 7.984 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1276, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.005557/0.1332, allocations: 4.923 MB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003378/0.1367, allocations: 1.62 MB / 364.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.1378, allocations: 43.81 kB / 364.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000918/0.1387, allocations: 250.5 kB / 365 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001485/0.1402, allocations: 299.1 kB / 365.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008541/0.1411, allocations: 223.7 kB / 365.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002125/0.1432, allocations: 1.276 MB / 366.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002946/0.1462, allocations: 1.876 MB / 368.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.1475, allocations: 0.685 MB / 369.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.1491, allocations: 0.8011 MB / 370.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004277/0.1496, allocations: 128 kB / 370.3 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008633/0.1504, allocations: 255.7 kB / 370.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006166/0.1511, allocations: 490.5 kB / 371 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000728/0.1518, allocations: 432.6 kB / 371.4 MB, free: 448 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2143/0.3661, allocations: 3.036 MB / 374.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3661, allocations: 0 / 374.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3662, allocations: 0 / 374.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001745/0.3663, allocations: 0 / 374.5 MB, free: 11.87 MB / 302.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.00692/0.3733, allocations: 2.109 MB / 376.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3733, allocations: 8.781 kB / 376.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001209/0.3745, allocations: 325.8 kB / 376.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.3758, allocations: 270.4 kB / 377.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003268/0.3791, allocations: 1.243 MB / 378.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3792, allocations: 171.5 kB / 378.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004683/0.3797, allocations: 221.7 kB / 378.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00584/0.3856, allocations: 2.509 MB / 381.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.264e-05/0.3857, allocations: 0 / 381.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/0.3859, allocations: 89.25 kB / 381.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.922e-05/0.386, allocations: 61.06 kB / 381.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004584/0.3906, allocations: 2.136 MB / 383.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.4047, allocations: 7.643 MB / 391.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.4059, allocations: 1.262 MB / 392.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.406, allocations: 8.484 kB / 392.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.406, allocations: 48.81 kB / 392.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=63): time 3.527e-06/0.4061, allocations: 0 / 392.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004242/0.4103, allocations: 2.593 MB / 395.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.4104, allocations: 57.47 kB / 395.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.4115, allocations: 0.781 MB / 396 MB, free: 2.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.4115, allocations: 37.08 kB / 396 MB, free: 2.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004489/0.412, allocations: 0.9221 MB / 397 MB, free: 1.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4121, allocations: 225.2 kB / 397.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.4122, allocations: 15.25 kB / 397.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4123, allocations: 391.4 kB / 397.6 MB, free: 1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.4128, allocations: 368.8 kB / 397.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.4134, allocations: 0.5855 MB / 398.5 MB, free: 352 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005937/0.414, allocations: 478.4 kB / 399 MB, free: 108 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.414, allocations: 0 / 399 MB, free: 108 kB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001856/0.4159, allocations: 1.133 MB / 400.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4159, allocations: 16.97 kB / 400.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.416, allocations: 10.36 kB / 400.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.4162, allocations: 83.91 kB / 400.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/0.4169, allocations: 175.8 kB / 400.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.4189, allocations: 1.951 MB / 402.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.4196, allocations: 45.25 kB / 402.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.117e-05/0.4197, allocations: 33.12 kB / 402.4 MB, free: 13.69 MB / 318.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001374/0.421, allocations: 0.6505 MB / 403.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.4213, allocations: 79.12 kB / 403.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002204/0.4215, allocations: 98.34 kB / 403.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.499e-05/0.4215, allocations: 19.33 kB / 403.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.4216, allocations: 1.469 kB / 403.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4216, allocations: 6.281 kB / 403.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.4266, allocations: 2.627 MB / 405.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4266, allocations: 0 / 405.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.4271, allocations: 111.1 kB / 406 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.4273, allocations: 84.78 kB / 406.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.4274, allocations: 19.98 kB / 406.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.4292, allocations: 1.916 MB / 408 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4292, allocations: 0 / 408 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.4315, allocations: 1.422 MB / 409.4 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005099/0.432, allocations: 216.1 kB / 409.7 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.4321, allocations: 19.98 kB / 409.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.4326, allocations: 43.92 kB / 409.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.4327, allocations: 48.55 kB / 409.8 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.422e-05/0.4327, allocations: 20 kB / 409.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008784/0.4336, allocations: 0.5492 MB / 410.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4336, allocations: 0 / 410.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001559/0.4352, allocations: 299.9 kB / 410.6 MB, free: 5.961 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * 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 (56): * Single equations (assignments): 53 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002601/0.4378, allocations: 2.141 MB / 412.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.4396, allocations: 0.9927 MB / 413.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4396, allocations: 4.062 kB / 413.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008282/0.4404, allocations: 0.5393 MB / 414.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.4416, allocations: 205.9 kB / 414.5 MB, free: 2.066 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.4583, allocations: 12.5 MB / 427 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.4597, allocations: 1.756 MB / 428.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006592/0.4604, allocations: 211 kB / 429 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007971/0.4612, allocations: 0.6438 MB / 429.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4612, allocations: 0 / 429.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0439/0.5051, allocations: 22.1 MB / 451.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.5054, allocations: 212.8 kB / 451.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/2.748, allocations: 0 / 451.9 MB, free: 12.64 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat does not exist to compare? outputFormat=mat