Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009207/0.0009206, allocations: 177.8 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.3 MB / 214.4 MB, free: 1.723 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.0009146/0.0009147, allocations: 78.25 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.83e-05/1.846e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08604, allocations: 47.6 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3104/0.3965, allocations: 81.75 MB / 444.9 MB, free: 13.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.3968, allocations: 73.28 kB / 445 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02931/0.4261, allocations: 10.94 MB / 455.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4262, allocations: 0 / 455.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.127e-05/0.4262, allocations: 8.219 kB / 455.9 MB, free: 4.5 MB / 330.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.001341/0.4276, allocations: 0.7941 MB / 456.7 MB, free: 3.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.4276, allocations: 8.031 kB / 456.8 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.4278, allocations: 67.25 kB / 456.8 MB, free: 3.613 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.4284, allocations: 397.3 kB / 457.2 MB, free: 3.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.4284, allocations: 12 kB / 457.2 MB, free: 3.219 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.4285, allocations: 31.94 kB / 457.2 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004894/0.429, allocations: 261.8 kB / 457.5 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006/0.4296, allocations: 368.4 kB / 457.9 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.4296, allocations: 0 / 457.9 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.4297, allocations: 4 kB / 457.9 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.4297, allocations: 12 kB / 457.9 MB, free: 2.719 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.432, allocations: 1.675 MB / 459.6 MB, free: 1.242 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.4324, allocations: 332.5 kB / 459.9 MB, free: 1.047 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.4327, allocations: 169.1 kB / 460 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.4327, allocations: 4 kB / 460 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.4331, allocations: 231.7 kB / 460.3 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 2.044e-06/0.4331, allocations: 3.938 kB / 460.3 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008259/0.4339, allocations: 432.7 kB / 460.7 MB, free: 396 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.434, allocations: 187.9 kB / 460.9 MB, free: 164 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005178/0.4345, allocations: 406.3 kB / 461.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.4346, allocations: 37 kB / 461.3 MB, free: 15.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.4348, allocations: 249.4 kB / 461.6 MB, free: 15.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.4349, allocations: 112.5 kB / 461.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.4349, allocations: 0 / 461.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4351, allocations: 363.4 kB / 462 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.4352, allocations: 99.88 kB / 462.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.4355, allocations: 191.4 kB / 462.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.4357, allocations: 114.1 kB / 462.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4357, allocations: 0 / 462.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006171/0.4363, allocations: 420.7 kB / 462.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.4363, allocations: 8 kB / 462.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.4363, allocations: 96 / 462.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004755/0.4368, allocations: 160.8 kB / 463 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.4371, allocations: 51.84 kB / 463 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.4416, allocations: 5.725 MB / 468.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.442, allocations: 47.75 kB / 468.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.442, allocations: 11.62 kB / 468.8 MB, free: 8.504 MB / 346.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 () * 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.0001763/0.4422, allocations: 123.2 kB / 469 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007707/0.443, allocations: 424.4 kB / 469.4 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.4431, allocations: 47.44 kB / 469.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008357/0.4439, allocations: 464.8 kB / 469.9 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4439, allocations: 4 kB / 469.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.444, allocations: 0 / 469.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.444, allocations: 0 / 469.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.4445, allocations: 443.8 kB / 470.3 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4445, allocations: 0 / 470.3 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.4446, allocations: 26.48 kB / 470.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003929/0.445, allocations: 164.9 kB / 470.5 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.4451, allocations: 0 / 470.5 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.4493, allocations: 5.556 MB / 476 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4493, allocations: 0 / 476 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008359/0.4502, allocations: 467.4 kB / 476.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.4504, allocations: 164.4 kB / 476.7 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.4505, allocations: 4 kB / 476.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.4507, allocations: 35.53 kB / 476.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.4509, allocations: 54.66 kB / 476.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.4509, allocations: 7.625 kB / 476.8 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003692/0.4513, allocations: 326.3 kB / 477.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4513, allocations: 0 / 477.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008462/0.4522, allocations: 159.7 kB / 477.2 MB, free: 416 kB / 346.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) * 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.001908/0.4541, allocations: 1.265 MB / 478.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.4551, allocations: 0.7419 MB / 479.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4551, allocations: 0 / 479.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005914/0.4557, allocations: 0.6014 MB / 479.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.4562, allocations: 91.34 kB / 479.9 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.4581, allocations: 0.7711 MB / 480.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004953/0.4586, allocations: 0.8707 MB / 481.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001992/0.4588, allocations: 58.66 kB / 481.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.459, allocations: 164.3 kB / 481.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.459, allocations: 0 / 481.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.4922, allocations: 11.46 MB / 493.2 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.4925, allocations: 191.9 kB / 493.4 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/2.602, allocations: 0 / 493.4 MB, free: 0.5078 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat