Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.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.SeriesBode,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode",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.002303/0.002303, allocations: 187.1 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.293/2.293, allocations: 205.4 MB / 222.5 MB, free: 13.7 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.00112/0.00112, allocations: 86.86 kB / 270.9 MB, free: 13.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005959/0.0005963, allocations: 8 kB / 327.1 MB, free: 14.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09778, allocations: 47.59 MB / 374.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode): time 0.005969/0.1038, allocations: 3.328 MB / 378 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004052/0.1079, allocations: 1.505 MB / 379.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.1083, allocations: 12 kB / 379.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005602/0.1089, allocations: 139.1 kB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001816/0.1107, allocations: 0.4946 MB / 380.1 MB, free: 9.781 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.1125, allocations: 438.8 kB / 380.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.1139, allocations: 395.1 kB / 380.9 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.116, allocations: 0.709 MB / 381.6 MB, free: 8.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004744/0.1165, allocations: 207.1 kB / 381.8 MB, free: 8.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.117, allocations: 266.9 kB / 382.1 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.1171, allocations: 24 kB / 382.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006713/0.1178, allocations: 183.8 kB / 382.3 MB, free: 7.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.1179, allocations: 95.58 kB / 382.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.1181, allocations: 117.5 kB / 382.5 MB, free: 7.348 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1192, allocations: 0.6313 MB / 383.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1192, allocations: 0 / 383.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1192, allocations: 0 / 383.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1193, allocations: 0 / 383.1 MB, free: 6.715 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.004372/0.1236, allocations: 0.9328 MB / 384.1 MB, free: 5.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1237, allocations: 12.03 kB / 384.1 MB, free: 5.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002893/0.124, allocations: 112.5 kB / 384.2 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009353/0.1334, allocations: 0.608 MB / 384.8 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.1348, allocations: 380.1 kB / 385.2 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.441e-05/0.1349, allocations: 50 kB / 385.2 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002639/0.1352, allocations: 68 kB / 385.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003373/0.1386, allocations: 0.8094 MB / 386.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.1387, allocations: 3.906 kB / 386.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.1388, allocations: 31.94 kB / 386.1 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.573e-05/0.1389, allocations: 22 kB / 386.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003998/0.1429, allocations: 0.8589 MB / 387 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.326/0.469, allocations: 2.728 MB / 389.8 MB, free: 19.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003108/0.4722, allocations: 1.968 MB / 391.7 MB, free: 17.8 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.4723, allocations: 92.05 kB / 391.8 MB, free: 17.7 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.96e-05/0.4724, allocations: 39.84 kB / 391.8 MB, free: 17.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 3.226e-06/0.4724, allocations: 0 / 391.8 MB, free: 17.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.003211/0.4756, allocations: 0.8395 MB / 392.7 MB, free: 17.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.4757, allocations: 62.25 kB / 392.7 MB, free: 17.45 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000467/0.4762, allocations: 309.3 kB / 393.1 MB, free: 17.35 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.4763, allocations: 39.77 kB / 393.1 MB, free: 17.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.4765, allocations: 351.4 kB / 393.4 MB, free: 17.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.4766, allocations: 168.2 kB / 393.6 MB, free: 16.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.4767, allocations: 10.34 kB / 393.6 MB, free: 16.97 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/0.4768, allocations: 334.9 kB / 393.9 MB, free: 16.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007162/0.4775, allocations: 205.9 kB / 394.1 MB, free: 16.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008283/0.4784, allocations: 389.1 kB / 394.5 MB, free: 16.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007977/0.4792, allocations: 260.3 kB / 394.8 MB, free: 16.32 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.4792, allocations: 2.094 kB / 394.8 MB, free: 16.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002165/0.4814, allocations: 0.6906 MB / 395.5 MB, free: 16.03 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004977/0.4819, allocations: 2.352 MB / 397.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.4819, allocations: 6.219 kB / 397.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.4823, allocations: 59.28 kB / 397.9 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.4834, allocations: 140.6 kB / 398 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.4852, allocations: 1.608 MB / 399.6 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006939/0.4859, allocations: 76.34 kB / 399.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-05/0.486, allocations: 28.66 kB / 399.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.4861, allocations: 4.312 kB / 399.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001945/0.488, allocations: 0.6509 MB / 400.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.4881, allocations: 5.938 kB / 400.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/0.4883, allocations: 49.14 kB / 400.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009803/0.4893, allocations: 141.6 kB / 400.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.4909, allocations: 1.519 MB / 402.1 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.4915, allocations: 54.75 kB / 402.1 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.082e-05/0.4916, allocations: 32.8 kB / 402.2 MB, free: 10.15 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (69): * Single equations (assignments): 68 * 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: 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.0004407/0.4921, allocations: 265.6 kB / 402.4 MB, free: 9.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.4922, allocations: 40.73 kB / 402.5 MB, free: 9.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.4943, allocations: 0.6214 MB / 403.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4943, allocations: 5.406 kB / 403.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4943, allocations: 2.781 kB / 403.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.4944, allocations: 2.672 kB / 403.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003272/0.4976, allocations: 1.314 MB / 404.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4977, allocations: 0 / 404.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007851/0.4985, allocations: 100.6 kB / 404.5 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002876/0.4988, allocations: 49.86 kB / 404.6 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.624e-05/0.4989, allocations: 15.53 kB / 404.6 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.5005, allocations: 1.598 MB / 406.2 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5006, allocations: 0 / 406.2 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.5033, allocations: 0.9356 MB / 407.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.5036, allocations: 150 kB / 407.3 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.605e-05/0.5037, allocations: 8.125 kB / 407.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004973/0.5042, allocations: 23.75 kB / 407.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.5043, allocations: 35.05 kB / 407.3 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.668e-05/0.5044, allocations: 21 kB / 407.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003171/0.5047, allocations: 215 kB / 407.6 MB, free: 6.547 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5048, allocations: 4.062 kB / 407.6 MB, free: 6.543 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001504/0.5063, allocations: 277.9 kB / 407.8 MB, free: 6.469 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (46): * Single equations (assignments): 45 * 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: 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.003141/0.5094, allocations: 1.504 MB / 409.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003254/0.5127, allocations: 1.122 MB / 410.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5128, allocations: 1.25 kB / 410.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.5138, allocations: 396.5 kB / 410.9 MB, free: 4.664 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.5143, allocations: 39 kB / 410.9 MB, free: 4.645 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008357/0.5227, allocations: 6.874 MB / 417.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.5234, allocations: 0.8562 MB / 418.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005893/0.524, allocations: 200.6 kB / 418.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.524, allocations: 0 / 418.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.799/3.323, allocations: 10.61 MB / 429.4 MB, free: 7.309 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode_res.mat does not exist to compare? outputFormat=mat