Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.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.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",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.002306/0.002313, allocations: 188.6 kB / 16.4 MB, free: 5.625 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.151/2.151, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001142/0.001141, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004092/0.0004092, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1005, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer): time 0.008256/0.1088, allocations: 4.718 MB / 379.4 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004899/0.1137, allocations: 1.766 MB / 381.1 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007868/0.1146, allocations: 20 kB / 381.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009139/0.1155, allocations: 202.8 kB / 381.3 MB, free: 8.613 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003099/0.1186, allocations: 0.7088 MB / 382.1 MB, free: 7.902 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1198, allocations: 239.6 kB / 382.3 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.1214, allocations: 0.6202 MB / 382.9 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004483/0.1259, allocations: 1.455 MB / 384.4 MB, free: 5.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007203/0.1266, allocations: 314.8 kB / 384.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008023/0.1275, allocations: 434.3 kB / 385.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.1276, allocations: 40 kB / 385.1 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007303/0.1284, allocations: 171.8 kB / 385.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.1286, allocations: 159.4 kB / 385.5 MB, free: 4.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000256/0.1288, allocations: 177.3 kB / 385.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.1306, allocations: 0.9428 MB / 386.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1306, allocations: 0 / 386.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1306, allocations: 0 / 386.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.1307, allocations: 0 / 386.6 MB, free: 3.328 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005065/0.1357, allocations: 1.253 MB / 387.8 MB, free: 2.023 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.1358, allocations: 8.031 kB / 387.8 MB, free: 2.016 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003419/0.1362, allocations: 168.9 kB / 388 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.1468, allocations: 0.959 MB / 389 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.148, allocations: 449.7 kB / 389.4 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.1481, allocations: 86.11 kB / 389.5 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002772/0.1484, allocations: 115.9 kB / 389.6 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2699/0.4183, allocations: 1.104 MB / 390.7 MB, free: 19.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.036e-05/0.4184, allocations: 1.469 kB / 390.7 MB, free: 19.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001745/0.4186, allocations: 44.41 kB / 390.7 MB, free: 19.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.69e-05/0.4187, allocations: 26.98 kB / 390.8 MB, free: 19.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00392/0.4226, allocations: 1.141 MB / 391.9 MB, free: 19.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.4327, allocations: 3.97 MB / 395.9 MB, free: 16.8 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004614/0.4373, allocations: 3.753 MB / 399.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002001/0.4376, allocations: 98.89 kB / 399.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.4377, allocations: 44.05 kB / 399.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=71): time 4.198e-06/0.4377, allocations: 0 / 399.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=71): time 0.002472/0.4402, allocations: 0.7657 MB / 400.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.4403, allocations: 110.6 kB / 400.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.4408, allocations: 325 kB / 401 MB, free: 12.19 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/0.4409, allocations: 39.89 kB / 401 MB, free: 12.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.4412, allocations: 0.4967 MB / 401.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.4414, allocations: 242.8 kB / 401.7 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.4415, allocations: 19.31 kB / 401.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4416, allocations: 356.1 kB / 402.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/0.4424, allocations: 248.7 kB / 402.3 MB, free: 11.11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009257/0.4434, allocations: 0.5521 MB / 402.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009282/0.4443, allocations: 341.7 kB / 403.2 MB, free: 10.45 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.4443, allocations: 7.375 kB / 403.2 MB, free: 10.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002394/0.4467, allocations: 0.8906 MB / 404.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.4468, allocations: 14.64 kB / 404.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.4469, allocations: 9.5 kB / 404.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.259e-05/0.4469, allocations: 18.58 kB / 404.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.4485, allocations: 237.2 kB / 404.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.705e-05/0.4486, allocations: 22.62 kB / 404.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008542/0.4495, allocations: 107.1 kB / 404.5 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4496, allocations: 53.7 kB / 404.6 MB, free: 9.957 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (122): * Single equations (assignments): 122 * 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 0.0005337/0.4501, allocations: 240.5 kB / 404.8 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.4503, allocations: 47.78 kB / 404.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.4524, allocations: 0.6901 MB / 405.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.4525, allocations: 8.859 kB / 405.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.4525, allocations: 1.281 kB / 405.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.4525, allocations: 4.906 kB / 405.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004205/0.4567, allocations: 1.597 MB / 407.2 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/0.4568, allocations: 1.375 kB / 407.2 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.458, allocations: 152.5 kB / 407.3 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.458, allocations: 4.484 kB / 407.3 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.11e-05/0.4581, allocations: 15.17 kB / 407.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.4581, allocations: 2.844 kB / 407.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4581, allocations: 1.438 kB / 407.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/0.4608, allocations: 1.202 MB / 408.5 MB, free: 7.844 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.4611, allocations: 127.2 kB / 408.7 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4612, allocations: 16.19 kB / 408.7 MB, free: 7.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.4619, allocations: 25.97 kB / 408.7 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.462, allocations: 47.78 kB / 408.8 MB, free: 7.691 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.445e-05/0.4621, allocations: 19.52 kB / 408.8 MB, free: 7.688 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003241/0.4624, allocations: 218.5 kB / 409 MB, free: 7.562 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4625, allocations: 0 / 409 MB, free: 7.562 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001237/0.4637, allocations: 244.6 kB / 409.2 MB, free: 7.492 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (78): * Single equations (assignments): 78 * 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.002967/0.4667, allocations: 1.919 MB / 411.1 MB, free: 6.105 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.4686, allocations: 0.7007 MB / 411.8 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.4686, allocations: 0 / 411.8 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000791/0.4694, allocations: 324.4 kB / 412.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007567/0.4702, allocations: 35.89 kB / 412.2 MB, free: 5.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.4835, allocations: 10.56 MB / 422.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009155/0.4844, allocations: 0.9498 MB / 423.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.4855, allocations: 297.7 kB / 424 MB, free: 11.48 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4855, allocations: 1.312 kB / 424 MB, free: 11.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.556/3.042, allocations: 10.8 MB / 434.8 MB, free: 1.941 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat