Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_cpp_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.002265/0.002265, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 93.28 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.983e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3462, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.4856, allocations: 81.51 MB / 443.9 MB, free: 4.781 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.4859, allocations: 67.97 kB / 444 MB, free: 4.715 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04989/0.5358, allocations: 10.94 MB / 455 MB, free: 9.816 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5359, allocations: 0 / 455 MB, free: 9.816 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.704e-05/0.536, allocations: 16.2 kB / 455 MB, free: 9.801 MB / 347.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.002077/0.5381, allocations: 0.7972 MB / 455.8 MB, free: 8.953 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.823e-05/0.5382, allocations: 8.031 kB / 455.8 MB, free: 8.945 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.5384, allocations: 63.25 kB / 455.8 MB, free: 8.883 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.5396, allocations: 399.9 kB / 456.2 MB, free: 8.449 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.27e-05/0.5397, allocations: 16 kB / 456.2 MB, free: 8.434 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.058e-05/0.5398, allocations: 27.89 kB / 456.3 MB, free: 8.406 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009107/0.5407, allocations: 269.5 kB / 456.5 MB, free: 8.145 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00098/0.5417, allocations: 356.8 kB / 456.9 MB, free: 7.77 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.5417, allocations: 7.938 kB / 456.9 MB, free: 7.762 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.5418, allocations: 4 kB / 456.9 MB, free: 7.758 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.5418, allocations: 12 kB / 456.9 MB, free: 7.746 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004145/0.546, allocations: 1.673 MB / 458.6 MB, free: 5.984 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00089/0.5469, allocations: 331.2 kB / 458.9 MB, free: 5.648 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/0.5474, allocations: 168.8 kB / 459.1 MB, free: 5.48 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.5474, allocations: 4 kB / 459.1 MB, free: 5.477 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005822/0.548, allocations: 234.2 kB / 459.3 MB, free: 5.219 MB / 347.1 MB Notification: Performance of pre-optimization done (n=40): time 3.597e-06/0.5481, allocations: 4 kB / 459.3 MB, free: 5.215 MB / 347.1 MB Notification: Performance of matching and sorting (n=40): time 0.001498/0.5496, allocations: 429.4 kB / 459.7 MB, free: 4.777 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.5497, allocations: 183.9 kB / 459.9 MB, free: 4.555 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008793/0.5506, allocations: 415.9 kB / 460.3 MB, free: 4.145 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.339e-05/0.5507, allocations: 25.7 kB / 460.3 MB, free: 4.113 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.551, allocations: 294.8 kB / 460.6 MB, free: 3.82 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.5512, allocations: 118.3 kB / 460.7 MB, free: 3.703 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.5512, allocations: 0 / 460.7 MB, free: 3.703 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.5514, allocations: 326.8 kB / 461.1 MB, free: 3.375 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003263/0.5517, allocations: 108.9 kB / 461.2 MB, free: 3.27 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004428/0.5522, allocations: 192.4 kB / 461.3 MB, free: 3.047 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.5526, allocations: 109.5 kB / 461.5 MB, free: 2.941 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.5526, allocations: 4 kB / 461.5 MB, free: 2.938 MB / 347.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001097/0.5537, allocations: 385.5 kB / 461.8 MB, free: 2.543 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.5537, allocations: 4 kB / 461.8 MB, free: 2.539 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.5538, allocations: 4 kB / 461.8 MB, free: 2.535 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008434/0.5546, allocations: 155.4 kB / 462 MB, free: 2.371 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.555, allocations: 43.91 kB / 462 MB, free: 2.328 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007019/0.5621, allocations: 5.732 MB / 467.8 MB, free: 12.14 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007453/0.5629, allocations: 43.89 kB / 467.8 MB, free: 12.09 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.563, allocations: 16 kB / 467.8 MB, free: 12.08 MB / 363.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,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.0002129/0.5632, allocations: 127.2 kB / 468 MB, free: 11.95 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00133/0.5645, allocations: 424.2 kB / 468.4 MB, free: 11.51 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.5647, allocations: 51.44 kB / 468.4 MB, free: 11.46 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.5661, allocations: 453.1 kB / 468.9 MB, free: 11 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.5662, allocations: 8 kB / 468.9 MB, free: 10.99 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5662, allocations: 0 / 468.9 MB, free: 10.99 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.5662, allocations: 3.984 kB / 468.9 MB, free: 10.98 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000877/0.5671, allocations: 437.7 kB / 469.3 MB, free: 10.52 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5671, allocations: 0 / 469.3 MB, free: 10.52 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.5674, allocations: 31.92 kB / 469.3 MB, free: 10.49 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006921/0.5681, allocations: 153.6 kB / 469.5 MB, free: 10.33 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.5682, allocations: 4 kB / 469.5 MB, free: 10.32 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006609/0.5748, allocations: 5.559 MB / 475 MB, free: 4.309 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5748, allocations: 3.938 kB / 475 MB, free: 4.305 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.5763, allocations: 463.4 kB / 475.5 MB, free: 3.82 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.5768, allocations: 164.4 kB / 475.7 MB, free: 3.641 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.641e-05/0.5769, allocations: 0 / 475.7 MB, free: 3.641 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.5774, allocations: 35.97 kB / 475.7 MB, free: 3.605 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.5777, allocations: 55.84 kB / 475.7 MB, free: 3.551 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.5777, allocations: 12 kB / 475.8 MB, free: 3.539 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0006395/0.5784, allocations: 318.9 kB / 476.1 MB, free: 3.23 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5784, allocations: 0 / 476.1 MB, free: 3.23 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.00124/0.5796, allocations: 159.7 kB / 476.2 MB, free: 3.074 MB / 363.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,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.002906/0.5825, allocations: 1.285 MB / 477.5 MB, free: 1.797 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.5848, allocations: 0.7338 MB / 478.2 MB, free: 1.023 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.5849, allocations: 192 / 478.2 MB, free: 1.023 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.5865, allocations: 0.6043 MB / 478.9 MB, free: 388 kB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.5881, allocations: 84.5 kB / 478.9 MB, free: 308 kB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005668/0.5938, allocations: 0.8163 MB / 479.8 MB, free: 15.44 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009733/0.5948, allocations: 0.8673 MB / 480.6 MB, free: 14.54 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007016/0.5956, allocations: 163.4 kB / 480.8 MB, free: 14.38 MB / 379.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5956, allocations: 0 / 480.8 MB, free: 14.38 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.328/3.923, allocations: 16.08 MB / 496.9 MB, free: 14.29 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat