Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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 trunk/package.mo): time 0.001087/0.001087, allocations: 195 kB / 8.536 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008399/0.0008399, allocations: 99 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09426/0.09513, allocations: 56.92 MB / 343.3 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.1815, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2295/0.411, allocations: 86.06 MB / 480.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.4113, allocations: 83.12 kB / 480.9 MB, free: 6.992 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.02633/0.4376, allocations: 11.06 MB / 491.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4377, allocations: 8 kB / 491.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.4379, allocations: 75.33 kB / 492 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006191/0.4385, allocations: 388.2 kB / 492.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.4386, allocations: 17.19 kB / 492.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.337e-05/0.4387, allocations: 31.94 kB / 492.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005275/0.4392, allocations: 308.6 kB / 492.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/0.4398, allocations: 421.7 kB / 493.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.4399, allocations: 0 / 493.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.232e-05/0.4399, allocations: 8.766 kB / 493.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.4399, allocations: 15.91 kB / 493.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.4423, allocations: 1.569 MB / 494.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/0.4431, allocations: 369.8 kB / 495.1 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.4433, allocations: 120.6 kB / 495.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.4433, allocations: 0 / 495.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.4436, allocations: 224.2 kB / 495.4 MB, free: 10.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.322e-06/0.4436, allocations: 0 / 495.4 MB, free: 10.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005862/0.4442, allocations: 304.9 kB / 495.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.4443, allocations: 143.2 kB / 495.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.4446, allocations: 271 kB / 496.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.4446, allocations: 37.52 kB / 496.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4448, allocations: 215.4 kB / 496.4 MB, free: 9.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.838e-05/0.4449, allocations: 104.2 kB / 496.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.642e-05/0.4449, allocations: 0 / 496.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.445, allocations: 348.6 kB / 496.8 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.4452, allocations: 112.5 kB / 496.9 MB, free: 9.496 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.4454, allocations: 260.2 kB / 497.2 MB, free: 9.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.4456, allocations: 138 kB / 497.3 MB, free: 9.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.4456, allocations: 4 kB / 497.3 MB, free: 9.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005725/0.4462, allocations: 395 kB / 497.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005335/0.4468, allocations: 1.655 MB / 499.4 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.4468, allocations: 4 kB / 499.4 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/0.447, allocations: 46.14 kB / 499.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.4473, allocations: 86.39 kB / 499.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.4483, allocations: 1.334 MB / 0.4891 GB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.4487, allocations: 71.72 kB / 0.4892 GB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.4488, allocations: 15.69 kB / 0.4892 GB, free: 5.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.751e-06/0.4488, allocations: 7.938 kB / 0.4892 GB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004983/0.4493, allocations: 324.5 kB / 0.4895 GB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4493, allocations: 4 kB / 0.4895 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001209/0.4494, allocations: 44.47 kB / 0.4895 GB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.4497, allocations: 75.83 kB / 0.4896 GB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000985/0.4507, allocations: 1.35 MB / 0.4909 GB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.451, allocations: 63.34 kB / 0.491 GB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.4511, allocations: 18.34 kB / 0.491 GB, free: 3.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.4512, allocations: 127 kB / 0.4911 GB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.4513, allocations: 35.53 kB / 0.4912 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.669e-05/0.4514, allocations: 45.8 kB / 0.4912 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.4514, allocations: 0 / 0.4912 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.4514, allocations: 4 kB / 0.4912 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4514, allocations: 0 / 0.4912 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.4525, allocations: 0.8154 MB / 0.492 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4525, allocations: 128 / 0.492 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.4528, allocations: 55.91 kB / 0.4921 GB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001273/0.4529, allocations: 39.38 kB / 0.4921 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.042e-05/0.4529, allocations: 11.55 kB / 0.4921 GB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009893/0.4539, allocations: 1.325 MB / 0.4934 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4539, allocations: 0 / 0.4934 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006804/0.4546, allocations: 0.5443 MB / 0.4939 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009798/0.4556, allocations: 1.072 MB / 0.495 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.4558, allocations: 144 kB / 0.4951 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.166e-05/0.4559, allocations: 4 kB / 0.4951 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.4562, allocations: 50.95 kB / 0.4952 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.4563, allocations: 23.47 kB / 0.4952 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.4563, allocations: 13.23 kB / 0.4952 GB, free: 15.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002209/0.4566, allocations: 205.7 kB / 0.4954 GB, free: 15.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001769/0.4583, allocations: 189.6 kB / 0.4956 GB, free: 15.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000164/0.4585, allocations: 132.7 kB / 0.4957 GB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009678/0.4595, allocations: 0.6907 MB / 0.4964 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4595, allocations: 0 / 0.4964 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.4598, allocations: 245 kB / 0.4966 GB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.4601, allocations: 58.78 kB / 0.4967 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.4615, allocations: 0.6329 MB / 0.4973 GB, free: 13.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005614/0.4621, allocations: 0.9086 MB / 0.4982 GB, free: 13 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4621, allocations: 0 / 0.4982 GB, free: 13 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat does not exist to compare? outputFormat=mat