Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009245/0.0009244, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008243/0.0008243, allocations: 90.55 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.464e-05/1.466e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.09196, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3046/0.3966, allocations: 79.99 MB / 467.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.3969, allocations: 73.61 kB / 467.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02145/0.4184, allocations: 8.33 MB / 475.9 MB, free: 6.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.4184, allocations: 0 / 475.9 MB, free: 6.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.4185, allocations: 12 kB / 476 MB, free: 6.289 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.0009767/0.4195, allocations: 0.7253 MB / 476.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.793e-05/0.4195, allocations: 8.031 kB / 476.7 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.054e-05/0.4196, allocations: 67.25 kB / 476.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.42, allocations: 351.6 kB / 477.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.42, allocations: 16 kB / 477.1 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.4201, allocations: 31.95 kB / 477.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004618/0.4205, allocations: 270.6 kB / 477.4 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.4212, allocations: 385.5 kB / 477.8 MB, free: 4.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4212, allocations: 3.938 kB / 477.8 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.4212, allocations: 0 / 477.8 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.4212, allocations: 20 kB / 477.8 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.4236, allocations: 1.617 MB / 479.4 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.4239, allocations: 233.1 kB / 479.6 MB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.4241, allocations: 122 kB / 479.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.4241, allocations: 7.906 kB / 479.8 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.4241, allocations: 42.56 kB / 479.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.433e-06/0.4241, allocations: 0 / 479.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001256/0.4254, allocations: 0.7027 MB / 480.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4255, allocations: 77.11 kB / 480.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.4258, allocations: 314.2 kB / 480.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.4258, allocations: 25.7 kB / 480.9 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.426, allocations: 287.4 kB / 481.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.609e-05/0.4261, allocations: 102.5 kB / 481.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.4261, allocations: 0 / 481.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4262, allocations: 350.7 kB / 481.7 MB, free: 264 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.4264, allocations: 80.88 kB / 481.7 MB, free: 184 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.4266, allocations: 178.2 kB / 481.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.4268, allocations: 98.69 kB / 482 MB, free: 15.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4268, allocations: 4 kB / 482 MB, free: 15.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006194/0.4274, allocations: 385.5 kB / 482.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.4274, allocations: 4 kB / 482.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4274, allocations: 4 kB / 482.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/0.4277, allocations: 81.75 kB / 482.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.428, allocations: 79.91 kB / 482.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.4302, allocations: 2.755 MB / 485.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.4305, allocations: 15.89 kB / 485.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.4305, allocations: 16 kB / 485.3 MB, free: 12.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.4306, allocations: 115.2 kB / 485.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005022/0.4311, allocations: 288 kB / 485.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.67e-05/0.4312, allocations: 39.53 kB / 485.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.712e-05/0.4313, allocations: 43.09 kB / 485.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.4313, allocations: 4 kB / 485.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.4313, allocations: 0 / 485.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4313, allocations: 3.953 kB / 485.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4324, allocations: 0.8229 MB / 486.6 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4324, allocations: 0 / 486.6 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.4326, allocations: 47.97 kB / 486.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.4329, allocations: 77.66 kB / 486.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.433, allocations: 3.984 kB / 486.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.4349, allocations: 2.754 MB / 489.5 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4349, allocations: 7.984 kB / 489.5 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006912/0.4356, allocations: 0.5485 MB / 490.1 MB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.872e-05/0.4357, allocations: 116.6 kB / 490.2 MB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.4358, allocations: 4 kB / 490.2 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.4361, allocations: 31.97 kB / 490.2 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.265e-05/0.4362, allocations: 27.91 kB / 490.3 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.4362, allocations: 8 kB / 490.3 MB, free: 7.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002477/0.4364, allocations: 240.6 kB / 490.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4365, allocations: 0 / 490.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006155/0.4371, allocations: 112 kB / 490.6 MB, free: 6.668 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009643/0.438, allocations: 1.174 MB / 491.8 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006917/0.4388, allocations: 466.6 kB / 492.2 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4388, allocations: 0.625 kB / 492.2 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004734/0.4392, allocations: 359.3 kB / 492.6 MB, free: 4.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.4396, allocations: 37.2 kB / 492.6 MB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.4412, allocations: 0.7902 MB / 493.4 MB, free: 3.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.4416, allocations: 0.847 MB / 494.3 MB, free: 2.879 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000182/0.4417, allocations: 47.25 kB / 494.3 MB, free: 2.828 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.4419, allocations: 159.4 kB / 494.5 MB, free: 2.672 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.442, allocations: 4 kB / 494.5 MB, free: 2.668 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.4664, allocations: 6.91 MB / 0.4896 GB, free: 11.8 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/0.4666, allocations: 152.2 kB / 0.4898 GB, free: 11.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.506, allocations: 0 / 0.4898 GB, free: 11.61 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat