Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008246/0.0008247, allocations: 86.08 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 183.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.3 MB / 241.2 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002801, allocations: 8 kB / 300.9 MB, free: 6.383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1217, allocations: 50.42 MB / 351.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005784/0.1276, allocations: 3.421 MB / 354.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.131, allocations: 1.341 MB / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005712/0.1316, allocations: 8 kB / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.1326, allocations: 217.6 kB / 356.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006942/0.1333, allocations: 222.7 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007932/0.1341, allocations: 226.8 kB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007709/0.1349, allocations: 0.6461 MB / 357.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002894/0.1352, allocations: 136.7 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005016/0.1357, allocations: 235 kB / 357.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000366/0.1361, allocations: 262.9 kB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.708e-05/0.1361, allocations: 31.94 kB / 358.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.1364, allocations: 63.97 kB / 358.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.1365, allocations: 115.6 kB / 358.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.1367, allocations: 125.4 kB / 358.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005753/0.1373, allocations: 0.4986 MB / 358.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1373, allocations: 0 / 358.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1373, allocations: 0 / 358.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1373, allocations: 0 / 358.9 MB, free: 12.39 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.001778/0.1391, allocations: 0.8596 MB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1392, allocations: 8.031 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.1393, allocations: 82.45 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.1394, allocations: 75.11 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/0.1401, allocations: 382 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.1401, allocations: 33 kB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.1402, allocations: 36 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008774/0.1411, allocations: 441.5 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1411, allocations: 0 / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/0.1411, allocations: 24 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1412, allocations: 11.95 kB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.1418, allocations: 311.8 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.1443, allocations: 1.722 MB / 362.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/0.1451, allocations: 363.1 kB / 363.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003308/0.1454, allocations: 180.8 kB / 363.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.1455, allocations: 11.98 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004887/0.146, allocations: 262.4 kB / 363.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.284e-06/0.146, allocations: 0 / 363.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002313/0.1483, allocations: 1.033 MB / 364.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002385/0.1486, allocations: 195.9 kB / 364.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/0.1493, allocations: 497.9 kB / 365.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.1493, allocations: 37.64 kB / 365.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.1496, allocations: 256.4 kB / 365.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.1498, allocations: 118.3 kB / 365.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.241e-05/0.1499, allocations: 12 kB / 365.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002749/0.1501, allocations: 358.8 kB / 366.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002483/0.1504, allocations: 120.8 kB / 366.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1507, allocations: 213.2 kB / 366.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.151, allocations: 129.6 kB / 366.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.151, allocations: 3.938 kB / 366.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008591/0.1519, allocations: 477.1 kB / 367 MB, free: 3.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.1519, allocations: 4 kB / 367 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1519, allocations: 3.984 kB / 367 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005023/0.1524, allocations: 163.2 kB / 367.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.1527, allocations: 39.97 kB / 367.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2613/0.4139, allocations: 5.943 MB / 373.2 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004897/0.4145, allocations: 62.81 kB / 373.2 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.4145, allocations: 13.17 kB / 373.2 MB, free: 21.62 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.0002904/0.4148, allocations: 189.3 kB / 373.4 MB, free: 21.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.4149, allocations: 50.27 kB / 373.5 MB, free: 21.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.415, allocations: 58.67 kB / 373.5 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.4151, allocations: 4.344 kB / 373.5 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4151, allocations: 7.734 kB / 373.5 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.4151, allocations: 2.422 kB / 373.5 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005966/0.4157, allocations: 496.7 kB / 374 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4157, allocations: 0 / 374 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.4159, allocations: 31.92 kB / 374 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/0.4163, allocations: 156.8 kB / 374.2 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.4164, allocations: 7.375 kB / 374.2 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004244/0.4206, allocations: 5.798 MB / 380 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4207, allocations: 0.7969 kB / 380 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.4219, allocations: 0.5072 MB / 380.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.4221, allocations: 158.9 kB / 380.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.4222, allocations: 11.16 kB / 380.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.4224, allocations: 37.61 kB / 380.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.4226, allocations: 59.22 kB / 380.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.4227, allocations: 8.844 kB / 380.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004516/0.4231, allocations: 357.2 kB / 381.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4231, allocations: 0 / 381.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008999/0.4241, allocations: 173.2 kB / 381.3 MB, free: 15.7 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.002139/0.4262, allocations: 1.377 MB / 382.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.4274, allocations: 0.8014 MB / 383.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4274, allocations: 1.375 kB / 383.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.428, allocations: 0.6572 MB / 384.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.4287, allocations: 108.8 kB / 384.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005425/0.4341, allocations: 2.875 MB / 387.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.4346, allocations: 0.8602 MB / 388 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002879/0.4349, allocations: 51.64 kB / 388 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.4351, allocations: 173.6 kB / 388.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4351, allocations: 0 / 388.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.4707, allocations: 12.72 MB / 400.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.4709, allocations: 260.4 kB / 401.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.717, allocations: 7.516 kB / 401.2 MB, free: 5.469 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat