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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001002, allocations: 94.48 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.0003623, allocations: 10.03 kB / 300.8 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00309/0.1373, allocations: 2.354 MB / 353.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.1386, allocations: 0.7135 MB / 354.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1388, allocations: 4 kB / 354.3 MB, free: 8.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.258e-05/0.1389, allocations: 39.73 kB / 354.3 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.1391, allocations: 111.6 kB / 354.4 MB, free: 8.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.1394, allocations: 75.84 kB / 354.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.1398, allocations: 263.5 kB / 354.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.14, allocations: 85.89 kB / 354.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.1402, allocations: 127.5 kB / 355 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.1404, allocations: 135.4 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.1404, allocations: 16 kB / 355.1 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.221e-05/0.1405, allocations: 16 kB / 355.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.1405, allocations: 47.83 kB / 355.2 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.629e-05/0.1406, allocations: 85.52 kB / 355.3 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.1409, allocations: 311.1 kB / 355.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1409, allocations: 0 / 355.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.31e-06/0.1409, allocations: 0 / 355.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.141, allocations: 3.938 kB / 355.6 MB, free: 7.258 MB / 286.1 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.001007/0.142, allocations: 0.5777 MB / 356.2 MB, free: 6.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.142, allocations: 15.97 kB / 356.2 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.758e-05/0.1421, allocations: 62.53 kB / 356.2 MB, free: 6.543 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.305e-05/0.1422, allocations: 39.58 kB / 356.3 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.1426, allocations: 270.5 kB / 356.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.1426, allocations: 20.56 kB / 356.6 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.1426, allocations: 24 kB / 356.6 MB, free: 6.156 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.1432, allocations: 280.5 kB / 356.9 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1432, allocations: 4 kB / 356.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.1432, allocations: 12 kB / 356.9 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.1433, allocations: 11.95 kB / 356.9 MB, free: 5.844 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.1437, allocations: 206.1 kB / 357.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1454, allocations: 1.172 MB / 358.3 MB, free: 4.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005454/0.146, allocations: 219.2 kB / 358.5 MB, free: 4.168 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.146, allocations: 4.188 kB / 358.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.1464, allocations: 169.3 kB / 358.6 MB, free: 3.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.412e-06/0.1464, allocations: 0 / 358.6 MB, free: 3.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001395/0.1478, allocations: 0.5067 MB / 359.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.1479, allocations: 118.8 kB / 359.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1482, allocations: 245 kB / 359.5 MB, free: 3.062 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.1482, allocations: 25.7 kB / 359.5 MB, free: 3.031 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1484, allocations: 172.4 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.424e-05/0.1485, allocations: 67.03 kB / 359.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.1485, allocations: 4 kB / 359.8 MB, free: 2.789 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1486, allocations: 338.8 kB / 360.1 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.1488, allocations: 71.97 kB / 360.2 MB, free: 2.379 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.149, allocations: 124.5 kB / 360.3 MB, free: 2.238 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.1492, allocations: 81.11 kB / 360.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.1492, allocations: 0 / 360.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005099/0.1497, allocations: 304.7 kB / 360.7 MB, free: 1.855 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1497, allocations: 4 kB / 360.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1497, allocations: 7.984 kB / 360.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003415/0.1501, allocations: 92.8 kB / 360.8 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.1502, allocations: 31.92 kB / 360.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/0.1525, allocations: 1.963 MB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.1527, allocations: 31.94 kB / 362.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1527, allocations: 7.938 kB / 362.8 MB, free: 15.58 MB / 302.1 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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.0002234/0.153, allocations: 153.8 kB / 363 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.153, allocations: 23.72 kB / 363 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.1531, allocations: 34.17 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1531, allocations: 4 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1531, allocations: 0 / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.1531, allocations: 3.953 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.1536, allocations: 357.3 kB / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1536, allocations: 0 / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.1537, allocations: 23.98 kB / 363.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002566/0.154, allocations: 88.8 kB / 363.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.154, allocations: 4 kB / 363.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/0.1562, allocations: 1.967 MB / 365.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1562, allocations: 0 / 365.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/0.157, allocations: 413.5 kB / 365.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1571, allocations: 128.7 kB / 366 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.1572, allocations: 7.984 kB / 366 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.1573, allocations: 24.05 kB / 366 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.1575, allocations: 31.95 kB / 366 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.1575, allocations: 4 kB / 366 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.1577, allocations: 176.5 kB / 366.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1577, allocations: 0 / 366.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.1581, allocations: 87.84 kB / 366.3 MB, free: 11.84 MB / 302.1 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.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.001089/0.1592, allocations: 0.9581 MB / 367.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007038/0.16, allocations: 358.5 kB / 367.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.16, allocations: 0 / 367.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.1604, allocations: 263.6 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1607, allocations: 56.8 kB / 367.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.1636, allocations: 1.943 MB / 369.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.164, allocations: 0.7713 MB / 370.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.1641, allocations: 22.3 kB / 370.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.1642, allocations: 87.34 kB / 370.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1642, allocations: 0 / 370.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.1912, allocations: 6.661 MB / 377.4 MB, free: 0.832 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002683/0.1915, allocations: 211.6 kB / 377.6 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.998/2.19, allocations: 0 / 377.6 MB, free: 0.5938 MB / 302.1 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