Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 97.89 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 198.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002747, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1444, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00404/0.1485, allocations: 3.47 MB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.1513, allocations: 1.497 MB / 363.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1517, allocations: 4 kB / 363.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007811/0.1525, allocations: 223.1 kB / 363.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006834/0.1532, allocations: 258.6 kB / 363.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.154, allocations: 227 kB / 364 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007837/0.1548, allocations: 0.6577 MB / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.155, allocations: 128.8 kB / 364.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000455/0.1555, allocations: 243 kB / 365 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.1559, allocations: 262.9 kB / 365.3 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.1559, allocations: 24 kB / 365.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.1562, allocations: 71.91 kB / 365.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1563, allocations: 111.6 kB / 365.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.1565, allocations: 129.4 kB / 365.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.157, allocations: 0.5181 MB / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1571, allocations: 0 / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1571, allocations: 0 / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.1571, allocations: 0 / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001545/0.1586, allocations: 0.8634 MB / 367 MB, free: 4.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1587, allocations: 12.03 kB / 367 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.941e-05/0.1588, allocations: 74.53 kB / 367.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.159, allocations: 75.23 kB / 367.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.1596, allocations: 393.8 kB / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.1596, allocations: 36.98 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.1597, allocations: 43.95 kB / 367.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.1605, allocations: 441.5 kB / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1605, allocations: 0 / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.1605, allocations: 24 kB / 368 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1606, allocations: 8 kB / 368.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005901/0.1611, allocations: 315.8 kB / 368.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.1637, allocations: 1.726 MB / 370.1 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007482/0.1644, allocations: 360.2 kB / 370.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/0.1648, allocations: 188.8 kB / 370.6 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.1649, allocations: 4 kB / 370.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005069/0.1654, allocations: 270.3 kB / 370.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.886e-06/0.1654, allocations: 0 / 370.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.262/0.4274, allocations: 1.022 MB / 371.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4275, allocations: 188.5 kB / 372.1 MB, free: 19.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009514/0.4285, allocations: 0.4997 MB / 372.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.4286, allocations: 36.86 kB / 372.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.4288, allocations: 255.5 kB / 372.9 MB, free: 19.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.429, allocations: 124.7 kB / 373 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/0.429, allocations: 8.062 kB / 373 MB, free: 19.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4291, allocations: 362.2 kB / 373.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.4294, allocations: 122.3 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.4298, allocations: 214 kB / 373.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.4301, allocations: 130.1 kB / 373.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.4302, allocations: 3.844 kB / 373.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001026/0.4312, allocations: 472.5 kB / 374.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.4312, allocations: 7.375 kB / 374.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4312, allocations: 1.188 kB / 374.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005886/0.4318, allocations: 153.8 kB / 374.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.4321, allocations: 52.25 kB / 374.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004535/0.4366, allocations: 5.948 MB / 380.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/0.4371, allocations: 62.72 kB / 380.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.4371, allocations: 9.641 kB / 380.5 MB, free: 13.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002696/0.4374, allocations: 194 kB / 380.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.964e-05/0.4375, allocations: 54.03 kB / 380.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.4376, allocations: 65.23 kB / 380.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4376, allocations: 5.125 kB / 380.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.4376, allocations: 5.328 kB / 380.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.4376, allocations: 1.922 kB / 380.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.4382, allocations: 495.1 kB / 381.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.4382, allocations: 0 / 381.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.4383, allocations: 29.62 kB / 381.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004381/0.4388, allocations: 159 kB / 381.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.4388, allocations: 7.984 kB / 381.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.4429, allocations: 5.803 MB / 387.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.443, allocations: 0 / 387.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.4443, allocations: 0.5083 MB / 387.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.4446, allocations: 156.5 kB / 388 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.4446, allocations: 12.31 kB / 388 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.4449, allocations: 38.19 kB / 388 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.4451, allocations: 57.47 kB / 388.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.4452, allocations: 12.41 kB / 388.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005189/0.4457, allocations: 368.4 kB / 388.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4457, allocations: 0 / 388.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009122/0.4466, allocations: 172.3 kB / 388.6 MB, free: 6.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002124/0.4487, allocations: 1.371 MB / 390 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.45, allocations: 0.7974 MB / 390.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.45, allocations: 1.094 kB / 390.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006578/0.4506, allocations: 0.6569 MB / 391.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005971/0.4513, allocations: 113.2 kB / 391.6 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004856/0.4561, allocations: 2.909 MB / 394.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.4566, allocations: 0.8618 MB / 395.3 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000266/0.4569, allocations: 53.31 kB / 395.4 MB, free: 1.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.4571, allocations: 169.7 kB / 395.5 MB, free: 1.809 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4571, allocations: 0 / 395.5 MB, free: 1.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0299/0.487, allocations: 12.81 MB / 408.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002831/0.4873, allocations: 277.8 kB / 408.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.761, allocations: 0 / 408.6 MB, free: 11.24 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat