Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.00139/0.00139, allocations: 181.1 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009549/0.000955, allocations: 100.8 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003097, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2387, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09294/0.3317, allocations: 78.34 MB / 454.2 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.332, allocations: 75.91 kB / 454.3 MB, free: 2.234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01312/0.3452, allocations: 4.959 MB / 459.3 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.858e-06/0.3453, allocations: 0 / 459.3 MB, free: 13.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.3453, allocations: 8 kB / 459.3 MB, free: 13.24 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.000974/0.3463, allocations: 0.5786 MB / 459.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3463, allocations: 11.97 kB / 459.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.408e-05/0.3464, allocations: 66.53 kB / 459.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.3465, allocations: 31.62 kB / 460 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.3468, allocations: 270.5 kB / 460.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.3469, allocations: 28.5 kB / 460.3 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/0.3469, allocations: 27.98 kB / 460.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.3474, allocations: 284.5 kB / 460.6 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3474, allocations: 4 kB / 460.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.3475, allocations: 12 kB / 460.6 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.3475, allocations: 4 kB / 460.6 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/0.3479, allocations: 210.1 kB / 460.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.3496, allocations: 1.146 MB / 461.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.3501, allocations: 227 kB / 462.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.3501, allocations: 4.188 kB / 462.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.3504, allocations: 167.8 kB / 462.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.3505, allocations: 8 kB / 462.3 MB, free: 9.973 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.00134/0.3518, allocations: 0.5199 MB / 462.9 MB, free: 9.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.491e-05/0.3519, allocations: 102.8 kB / 463 MB, free: 9.301 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.3521, allocations: 216.2 kB / 463.2 MB, free: 9.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.3522, allocations: 33.7 kB / 463.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3523, allocations: 176.4 kB / 463.4 MB, free: 8.871 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.3523, allocations: 63.02 kB / 463.4 MB, free: 8.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.3524, allocations: 4 kB / 463.4 MB, free: 8.805 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3525, allocations: 334.8 kB / 463.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.3527, allocations: 80.41 kB / 463.8 MB, free: 8.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.3528, allocations: 124.5 kB / 464 MB, free: 8.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.353, allocations: 81.16 kB / 464 MB, free: 8.172 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.353, allocations: 0 / 464 MB, free: 8.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004803/0.3535, allocations: 304.8 kB / 464.3 MB, free: 7.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3535, allocations: 4 kB / 464.3 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3535, allocations: 0 / 464.3 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003221/0.3539, allocations: 96.56 kB / 464.4 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.354, allocations: 35.92 kB / 464.5 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.3561, allocations: 1.952 MB / 466.4 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.3563, allocations: 31.86 kB / 466.5 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.3564, allocations: 12 kB / 466.5 MB, free: 5.598 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.3565, allocations: 159.1 kB / 466.6 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.3566, allocations: 23.72 kB / 466.6 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.89e-05/0.3567, allocations: 30.25 kB / 466.7 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3567, allocations: 0 / 466.7 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3567, allocations: 7.984 kB / 466.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3567, allocations: 0 / 466.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.357, allocations: 353.3 kB / 467 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.357, allocations: 3.984 kB / 467 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.3572, allocations: 23.97 kB / 467.1 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.3574, allocations: 84.86 kB / 467.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.3574, allocations: 8 kB / 467.1 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.3594, allocations: 1.975 MB / 469.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3594, allocations: 0 / 469.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3604, allocations: 428.6 kB / 469.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.3607, allocations: 116.8 kB / 469.7 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.3607, allocations: 4 kB / 469.7 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.361, allocations: 23.98 kB / 469.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.3611, allocations: 36 kB / 469.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.3611, allocations: 8 kB / 469.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002115/0.3614, allocations: 172.6 kB / 469.9 MB, free: 1.938 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3614, allocations: 3.938 kB / 469.9 MB, free: 1.934 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005161/0.3619, allocations: 95.8 kB / 470 MB, free: 1.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001297/0.3632, allocations: 0.9683 MB / 471 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008314/0.364, allocations: 362.5 kB / 471.3 MB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3641, allocations: 0 / 471.3 MB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.3645, allocations: 271.3 kB / 471.6 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.3649, allocations: 55.55 kB / 471.6 MB, free: 148 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.368, allocations: 1.919 MB / 473.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.3685, allocations: 0.7752 MB / 474.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.3686, allocations: 22.3 kB / 474.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.3688, allocations: 79.41 kB / 474.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3688, allocations: 0 / 474.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3901, allocations: 6.677 MB / 481.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.3904, allocations: 225 kB / 481.3 MB, free: 6.359 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.279, allocations: 4 kB / 481.3 MB, free: 6.355 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat