Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.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.QuasiStatic.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",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.001499/0.001499, allocations: 177.1 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.39/1.39, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.001009/0.001009, allocations: 89.69 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.663e-05/1.665e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.08969, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3214/0.4112, allocations: 83.78 MB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.4115, allocations: 75.95 kB / 471.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04013/0.4516, allocations: 16.31 MB / 487.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4517, allocations: 4 kB / 487.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.4517, allocations: 8 kB / 487.7 MB, free: 10.34 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00173/0.4534, allocations: 0.7998 MB / 488.5 MB, free: 9.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.4535, allocations: 16.03 kB / 488.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001954/0.4554, allocations: 295.1 kB / 488.8 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.4559, allocations: 336.2 kB / 489.2 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.456, allocations: 16 kB / 489.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.363e-05/0.456, allocations: 39.94 kB / 489.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001036/0.4571, allocations: 0.6391 MB / 489.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000943/0.458, allocations: 0.586 MB / 490.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.4581, allocations: 0 / 490.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.4581, allocations: 0 / 490.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.4582, allocations: 19.98 kB / 490.5 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003403/0.4616, allocations: 2.255 MB / 492.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.4629, allocations: 1.124 MB / 493.8 MB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.4632, allocations: 169.2 kB / 494 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.4633, allocations: 93.03 kB / 494.1 MB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.4633, allocations: 38.56 kB / 494.1 MB, free: 3.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.745e-06/0.4633, allocations: 0 / 494.1 MB, free: 3.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.001065/0.4644, allocations: 453.1 kB / 494.6 MB, free: 3.051 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.4645, allocations: 89.06 kB / 494.7 MB, free: 2.945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.4647, allocations: 242.1 kB / 494.9 MB, free: 2.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.4648, allocations: 29.64 kB / 494.9 MB, free: 2.668 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.4649, allocations: 259.8 kB / 495.2 MB, free: 2.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.465, allocations: 145.8 kB / 495.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.4651, allocations: 0 / 495.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.4652, allocations: 334.8 kB / 495.7 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.4654, allocations: 177.1 kB / 495.8 MB, free: 1.758 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.4658, allocations: 299.4 kB / 496.1 MB, free: 1.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006058/0.4664, allocations: 281.4 kB / 496.4 MB, free: 1.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.4664, allocations: 8 kB / 496.4 MB, free: 1.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001229/0.4677, allocations: 0.6365 MB / 497 MB, free: 496 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005457/0.4682, allocations: 1.399 MB / 498.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4682, allocations: 4 kB / 498.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000254/0.4685, allocations: 56.77 kB / 498.5 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.469, allocations: 111.9 kB / 498.6 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.4703, allocations: 1.532 MB / 0.4884 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003897/0.4707, allocations: 47.52 kB / 0.4885 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.4708, allocations: 31.98 kB / 0.4885 GB, free: 13.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.4708, allocations: 4 kB / 0.4885 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001149/0.472, allocations: 0.567 MB / 0.489 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.472, allocations: 4 kB / 0.4891 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.4721, allocations: 53.33 kB / 0.4891 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004199/0.4726, allocations: 112.1 kB / 0.4892 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.4737, allocations: 1.456 MB / 0.4906 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.474, allocations: 35.59 kB / 0.4907 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.4741, allocations: 23.98 kB / 0.4907 GB, free: 10.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.4743, allocations: 116.8 kB / 0.4908 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000991/0.4753, allocations: 437.8 kB / 0.4912 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.4753, allocations: 27.72 kB / 0.4912 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.4764, allocations: 0.5083 MB / 0.4917 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.4765, allocations: 7.984 kB / 0.4917 GB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4765, allocations: 0 / 0.4917 GB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.4765, allocations: 0 / 0.4917 GB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.4782, allocations: 1.064 MB / 0.4928 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.4782, allocations: 0 / 0.4928 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003668/0.4786, allocations: 79.89 kB / 0.4929 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.4788, allocations: 61 kB / 0.4929 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.4789, allocations: 0 / 0.4929 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.4801, allocations: 1.528 MB / 0.4944 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4801, allocations: 0 / 0.4944 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.4814, allocations: 0.7491 MB / 0.4951 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.4815, allocations: 140.8 kB / 0.4953 GB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.154e-05/0.4816, allocations: 3.938 kB / 0.4953 GB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.4819, allocations: 27.97 kB / 0.4953 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/0.482, allocations: 36.39 kB / 0.4953 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.482, allocations: 8 kB / 0.4954 GB, free: 5.695 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.4822, allocations: 176.5 kB / 0.4955 GB, free: 5.523 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4822, allocations: 0 / 0.4955 GB, free: 5.523 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009941/0.4832, allocations: 262.8 kB / 0.4958 GB, free: 5.266 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001629/0.4849, allocations: 1.341 MB / 0.4971 GB, free: 3.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.4863, allocations: 0.9202 MB / 0.498 GB, free: 2.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4863, allocations: 0 / 0.498 GB, free: 2.953 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.4867, allocations: 307.4 kB / 0.4983 GB, free: 2.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.4871, allocations: 20.17 kB / 0.4983 GB, free: 2.625 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.4886, allocations: 0.6598 MB / 0.4989 GB, free: 1.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.489, allocations: 0.8441 MB / 0.4998 GB, free: 1.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000882/0.4899, allocations: 0.5737 MB / 0.5003 GB, free: 500 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.4901, allocations: 151.4 kB / 0.5005 GB, free: 348 kB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4901, allocations: 0 / 0.5005 GB, free: 348 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.5192, allocations: 7.726 MB / 0.508 GB, free: 8.648 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.5195, allocations: 154.7 kB / 0.5082 GB, free: 8.461 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.583, allocations: 0 / 0.5082 GB, free: 8.461 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode_res.mat does not exist to compare? outputFormat=mat