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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008777/0.0008777, allocations: 87.7 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.000312, allocations: 12 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2863, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.3967, allocations: 84.09 MB / 485.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.3971, allocations: 83.89 kB / 485.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0297/0.4268, allocations: 11.36 MB / 497.1 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4268, allocations: 0 / 497.1 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.614e-05/0.4269, allocations: 19.98 kB / 497.1 MB, free: 0.8281 MB / 362.7 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.001443/0.4283, allocations: 0.8656 MB / 498 MB, free: 15.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.4284, allocations: 8.031 kB / 498 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.977e-05/0.4285, allocations: 82.47 kB / 498.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.4286, allocations: 67.16 kB / 498.2 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007463/0.4294, allocations: 401.8 kB / 498.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.469e-05/0.4294, allocations: 29 kB / 498.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.4295, allocations: 44 kB / 498.6 MB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007733/0.4303, allocations: 437.5 kB / 499 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.4303, allocations: 0 / 499 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.4304, allocations: 19.95 kB / 499.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.4304, allocations: 15.98 kB / 499.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.431, allocations: 319.8 kB / 499.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.4335, allocations: 1.746 MB / 0.4894 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006279/0.4342, allocations: 367.1 kB / 0.4897 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.4342, allocations: 8 kB / 0.4897 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/0.4346, allocations: 254.4 kB / 0.49 GB, free: 11.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.563e-06/0.4346, allocations: 0 / 0.49 GB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002087/0.4367, allocations: 1.037 MB / 0.491 GB, free: 10.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.4368, allocations: 187.9 kB / 0.4912 GB, free: 10.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.4374, allocations: 445.1 kB / 0.4916 GB, free: 10.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.4374, allocations: 37.7 kB / 0.4916 GB, free: 10.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.4376, allocations: 252.4 kB / 0.4919 GB, free: 9.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.126e-05/0.4377, allocations: 122.3 kB / 0.492 GB, free: 9.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.4377, allocations: 8 kB / 0.492 GB, free: 9.723 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.4379, allocations: 362.7 kB / 0.4924 GB, free: 9.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.4382, allocations: 120.8 kB / 0.4925 GB, free: 9.242 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.4385, allocations: 221.2 kB / 0.4927 GB, free: 8.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.4387, allocations: 128.4 kB / 0.4928 GB, free: 8.871 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4387, allocations: 3.938 kB / 0.4928 GB, free: 8.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007914/0.4395, allocations: 485.4 kB / 0.4933 GB, free: 8.375 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4396, allocations: 4 kB / 0.4933 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.4396, allocations: 0 / 0.4933 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004972/0.4401, allocations: 163.3 kB / 0.4934 GB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.4403, allocations: 47.92 kB / 0.4935 GB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004901/0.4452, allocations: 5.986 MB / 0.4993 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.4456, allocations: 59.77 kB / 0.4994 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.4457, allocations: 15.98 kB / 0.4994 GB, free: 1.551 MB / 378.7 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,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$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.0002876/0.446, allocations: 188 kB / 0.4996 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.446, allocations: 55.34 kB / 0.4996 GB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.4471, allocations: 0.5086 MB / 0.5001 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4471, allocations: 4 kB / 0.5001 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.4471, allocations: 0 / 0.5001 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4471, allocations: 4.062 kB / 0.5001 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005889/0.4477, allocations: 0.5088 MB / 0.5006 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4477, allocations: 0 / 0.5006 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.4479, allocations: 39.91 kB / 0.5007 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/0.4483, allocations: 147.3 kB / 0.5008 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.4483, allocations: 11.98 kB / 0.5008 GB, free: 0 / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2482/0.6965, allocations: 5.83 MB / 0.5065 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.6966, allocations: 0.9062 kB / 0.5065 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.6981, allocations: 0.5118 MB / 0.507 GB, free: 92.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.6984, allocations: 164.3 kB / 0.5072 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.266e-05/0.6985, allocations: 11.33 kB / 0.5072 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.6988, allocations: 37.27 kB / 0.5072 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.699, allocations: 54.77 kB / 0.5073 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.6991, allocations: 12.2 kB / 0.5073 GB, free: 92.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006239/0.6997, allocations: 356.3 kB / 0.5076 GB, free: 91.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.6997, allocations: 2.625 kB / 0.5076 GB, free: 91.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001024/0.7008, allocations: 178.8 kB / 0.5078 GB, free: 91.96 MB / 378.7 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,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * 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.002735/0.7035, allocations: 1.394 MB / 0.5091 GB, free: 91.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.705, allocations: 0.8216 MB / 0.51 GB, free: 90.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.705, allocations: 0.5938 kB / 0.51 GB, free: 90.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008874/0.7059, allocations: 0.6582 MB / 0.5106 GB, free: 90.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.7065, allocations: 104.9 kB / 0.5107 GB, free: 90.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004349/0.7109, allocations: 3.334 MB / 0.514 GB, free: 88.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.7113, allocations: 0.8741 MB / 0.5148 GB, free: 88.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.7115, allocations: 52.19 kB / 0.5149 GB, free: 88.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.7117, allocations: 166.3 kB / 0.515 GB, free: 88.23 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.7117, allocations: 3.375 kB / 0.515 GB, free: 88.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/0.7384, allocations: 12.91 MB / 0.5276 GB, free: 82.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.7386, allocations: 260.3 kB / 0.5279 GB, free: 81.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.54/3.279, allocations: 0 / 0.5279 GB, free: 81.91 MB / 378.7 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