Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009783/0.0009783, allocations: 179.7 kB / 8.476 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.088/1.088, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000862/0.000862, allocations: 82.33 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.158/0.1589, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06883/0.2278, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.4507, allocations: 86.22 MB / 448.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.4509, allocations: 85.19 kB / 448.9 MB, free: 10.07 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.05335/0.5043, allocations: 23.12 MB / 472.1 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.5043, allocations: 8.625 kB / 472.1 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002357/0.5067, allocations: 393 kB / 472.5 MB, free: 0.832 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009913/0.5077, allocations: 0.5419 MB / 473 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.5078, allocations: 36.59 kB / 473 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.508, allocations: 60.25 kB / 473.1 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001436/0.5094, allocations: 0.7854 MB / 473.9 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.5108, allocations: 0.8365 MB / 474.7 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.5108, allocations: 4 kB / 474.7 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.768e-05/0.5109, allocations: 4 kB / 474.7 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.5109, allocations: 24 kB / 474.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.5164, allocations: 3.778 MB / 478.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.5175, allocations: 0.6985 MB / 479.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000565/0.518, allocations: 369.6 kB / 479.6 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.956e-05/0.5182, allocations: 101.4 kB / 479.7 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005696/0.5187, allocations: 437.7 kB / 480.1 MB, free: 11.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=86): time 2.705e-06/0.5188, allocations: 0 / 480.1 MB, free: 11.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=86): time 0.001748/0.5205, allocations: 0.8036 MB / 480.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.5206, allocations: 192.7 kB / 481.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.521, allocations: 361.7 kB / 481.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.5211, allocations: 33.5 kB / 481.5 MB, free: 10.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.5213, allocations: 377.7 kB / 481.9 MB, free: 9.742 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.5215, allocations: 270.5 kB / 482.1 MB, free: 9.512 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.5216, allocations: 7.969 kB / 482.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5217, allocations: 377.1 kB / 482.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.522, allocations: 237.5 kB / 482.7 MB, free: 9.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.5226, allocations: 477.4 kB / 483.2 MB, free: 8.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005784/0.5231, allocations: 308.2 kB / 483.5 MB, free: 8.371 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5232, allocations: 0 / 483.5 MB, free: 8.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.0017/0.5249, allocations: 0.9569 MB / 484.4 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5249, allocations: 4 kB / 484.5 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5249, allocations: 8 kB / 484.5 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008583/0.5258, allocations: 279.5 kB / 484.7 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006424/0.5264, allocations: 166.5 kB / 484.9 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004434/0.5309, allocations: 4.068 MB / 489 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006468/0.5315, allocations: 91.2 kB / 489.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.81e-05/0.5316, allocations: 39.8 kB / 489.1 MB, free: 3.508 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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: 0 * Non-linear torn systems: 2 {4 18,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002185/0.5318, allocations: 139.1 kB / 489.2 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.677e-05/0.5319, allocations: 67.78 kB / 489.3 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/0.5337, allocations: 0.8854 MB / 490.2 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.5338, allocations: 11.98 kB / 490.2 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5338, allocations: 7.906 kB / 490.2 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.5338, allocations: 3.984 kB / 490.2 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.5363, allocations: 1.692 MB / 491.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5363, allocations: 0 / 491.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.5369, allocations: 107.9 kB / 492 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000774/0.5376, allocations: 265.4 kB / 492.3 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/0.5377, allocations: 12.08 kB / 492.3 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004282/0.542, allocations: 4.05 MB / 496.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.542, allocations: 0 / 496.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00204/0.5441, allocations: 1.279 MB / 497.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003651/0.5477, allocations: 2.72 MB / 0.4886 GB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.548, allocations: 216 kB / 0.4888 GB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.5481, allocations: 8 kB / 0.4888 GB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.5486, allocations: 39.97 kB / 0.4888 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.5488, allocations: 48.7 kB / 0.4889 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.332e-05/0.5488, allocations: 23.98 kB / 0.4889 GB, free: 7.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002919/0.5491, allocations: 275.2 kB / 0.4892 GB, free: 7.363 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001609/0.5508, allocations: 295 kB / 0.4895 GB, free: 7.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 2 {2 8,4 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002826/0.5511, allocations: 156.4 kB / 0.4896 GB, free: 6.918 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.5526, allocations: 0.9399 MB / 0.4905 GB, free: 5.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5526, allocations: 1.312 kB / 0.4905 GB, free: 5.965 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009103/0.5535, allocations: 0.6133 MB / 0.4911 GB, free: 5.328 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.554, allocations: 76.52 kB / 0.4912 GB, free: 5.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.5583, allocations: 1.725 MB / 0.4929 GB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007002/0.5591, allocations: 1.06 MB / 0.4939 GB, free: 2.434 MB / 346.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5591, allocations: 0 / 0.4939 GB, free: 2.434 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat