Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.0009852/0.0009851, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009495/0.0009494, allocations: 101.7 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.92e-05/1.906e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/0.4156, allocations: 78.98 MB / 466.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4158, allocations: 67.97 kB / 466.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.4289, allocations: 5.081 MB / 471.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.429, allocations: 0 / 471.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.429, allocations: 4 kB / 471.7 MB, free: 10.57 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.0007625/0.4298, allocations: 0.5392 MB / 472.2 MB, free: 9.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.4298, allocations: 8.031 kB / 472.2 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.4299, allocations: 39.53 kB / 472.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.4302, allocations: 282.3 kB / 472.5 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.4302, allocations: 8 kB / 472.6 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.4303, allocations: 12 kB / 472.6 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003228/0.4306, allocations: 173.1 kB / 472.7 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.431, allocations: 251.4 kB / 473 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.431, allocations: 0 / 473 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.4311, allocations: 0 / 473 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4311, allocations: 8 kB / 473 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.4326, allocations: 1.09 MB / 474.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/0.433, allocations: 199 kB / 474.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.4333, allocations: 129.2 kB / 474.4 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.4333, allocations: 4.188 kB / 474.4 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.4336, allocations: 164.4 kB / 474.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.4336, allocations: 0 / 474.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005016/0.4341, allocations: 235.5 kB / 474.8 MB, free: 7.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.4342, allocations: 132.5 kB / 474.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.4344, allocations: 204 kB / 475.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.4344, allocations: 25.7 kB / 475.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.4345, allocations: 172.1 kB / 475.3 MB, free: 6.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.965e-05/0.4346, allocations: 63.02 kB / 475.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.4346, allocations: 0 / 475.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4347, allocations: 342.8 kB / 475.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.4348, allocations: 59.94 kB / 475.8 MB, free: 6.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.4349, allocations: 113.1 kB / 475.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.435, allocations: 63.91 kB / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4351, allocations: 0 / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003841/0.4354, allocations: 246.2 kB / 476.2 MB, free: 5.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.4355, allocations: 5.094 kB / 476.2 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4355, allocations: 8.109 kB / 476.2 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.4358, allocations: 96.69 kB / 476.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.4359, allocations: 31.98 kB / 476.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/0.4379, allocations: 1.92 MB / 478.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.4381, allocations: 23.83 kB / 478.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.4382, allocations: 15.98 kB / 478.3 MB, free: 3.555 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: 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 9.943e-05/0.4383, allocations: 108.9 kB / 478.4 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004278/0.4387, allocations: 244.7 kB / 478.6 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.4388, allocations: 27.7 kB / 478.7 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.936e-05/0.4388, allocations: 26.08 kB / 478.7 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4388, allocations: 7.938 kB / 478.7 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.4388, allocations: 3.953 kB / 478.7 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4388, allocations: 3.984 kB / 478.7 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008947/0.4397, allocations: 0.7223 MB / 479.4 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4398, allocations: 0 / 479.4 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.4399, allocations: 23.92 kB / 479.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002326/0.4401, allocations: 84.81 kB / 479.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.4402, allocations: 3.953 kB / 479.5 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.442, allocations: 1.867 MB / 481.4 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.442, allocations: 3.938 kB / 481.4 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.4425, allocations: 433.2 kB / 481.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.4426, allocations: 120.8 kB / 481.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.4427, allocations: 0 / 481.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.4429, allocations: 15.98 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/0.443, allocations: 43.92 kB / 482 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.443, allocations: 4 kB / 482 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001293/0.4431, allocations: 156.6 kB / 482.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4431, allocations: 4 kB / 482.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.4436, allocations: 87.78 kB / 482.2 MB, free: 15.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.0008129/0.4444, allocations: 1.027 MB / 483.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005379/0.445, allocations: 328.5 kB / 483.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.445, allocations: 0 / 483.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.4453, allocations: 245.7 kB / 483.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.4457, allocations: 37.09 kB / 483.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009575/0.4466, allocations: 452.6 kB / 484.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.4469, allocations: 0.7717 MB / 485.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.827e-05/0.447, allocations: 18.08 kB / 485.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.833e-05/0.4471, allocations: 83.41 kB / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4471, allocations: 0 / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.4725, allocations: 5.74 MB / 490.9 MB, free: 6.633 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.4727, allocations: 141.9 kB / 491.1 MB, free: 6.441 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.202, allocations: 3.25 kB / 491.1 MB, free: 6.441 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat