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.0008863/0.0008862, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0008208/0.0008211, allocations: 181.5 kB / 17.21 MB, free: 6.324 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.516/1.516, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003112, allocations: 9.781 kB / 300.9 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1266, allocations: 50.42 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003307/0.13, allocations: 2.487 MB / 353.8 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1314, allocations: 0.6938 MB / 354.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.1316, allocations: 4 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1318, allocations: 39.69 kB / 354.6 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.132, allocations: 87.25 kB / 354.6 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.1323, allocations: 67.84 kB / 354.7 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.1327, allocations: 366.4 kB / 355.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.1329, allocations: 97.89 kB / 355.2 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.1331, allocations: 115.6 kB / 355.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1333, allocations: 131.4 kB / 355.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.305e-05/0.1334, allocations: 19.98 kB / 355.4 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.1335, allocations: 16 kB / 355.4 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.1335, allocations: 51.77 kB / 355.5 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.451e-05/0.1336, allocations: 89.52 kB / 355.6 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.134, allocations: 315.1 kB / 355.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.134, allocations: 0 / 355.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.134, allocations: 0 / 355.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.134, allocations: 0 / 355.9 MB, free: 7.016 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.001042/0.1351, allocations: 0.58 MB / 356.5 MB, free: 6.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.1351, allocations: 8.031 kB / 356.5 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.945e-05/0.1352, allocations: 62.53 kB / 356.5 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.395e-05/0.1353, allocations: 35.58 kB / 356.6 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.1356, allocations: 274.5 kB / 356.8 MB, free: 5.965 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.1357, allocations: 20.56 kB / 356.9 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.1357, allocations: 31.98 kB / 356.9 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.1363, allocations: 280.6 kB / 357.2 MB, free: 5.629 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1363, allocations: 0 / 357.2 MB, free: 5.629 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.1363, allocations: 12 kB / 357.2 MB, free: 5.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1364, allocations: 11.95 kB / 357.2 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.1368, allocations: 214.1 kB / 357.4 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1386, allocations: 1.172 MB / 358.6 MB, free: 4.145 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.1391, allocations: 211.2 kB / 358.8 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.1395, allocations: 149.1 kB / 358.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1395, allocations: 4.188 kB / 358.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/0.1399, allocations: 170.1 kB / 359.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 2.485e-06/0.1399, allocations: 0 / 359.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001596/0.1415, allocations: 0.5248 MB / 359.6 MB, free: 3.039 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.1417, allocations: 128.5 kB / 359.7 MB, free: 2.883 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.1421, allocations: 248.9 kB / 360 MB, free: 2.633 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.416e-05/0.1421, allocations: 29.7 kB / 360 MB, free: 2.598 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.1423, allocations: 168.4 kB / 360.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.507e-05/0.1424, allocations: 67.09 kB / 360.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.636e-05/0.1424, allocations: 4 kB / 360.2 MB, free: 2.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002671/0.1427, allocations: 334.8 kB / 360.6 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.1429, allocations: 79.91 kB / 360.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.1431, allocations: 121.1 kB / 360.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1433, allocations: 76.03 kB / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1433, allocations: 0 / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00061/0.1439, allocations: 290.1 kB / 361.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.144, allocations: 7.938 kB / 361.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.144, allocations: 0 / 361.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004513/0.1445, allocations: 104.8 kB / 361.2 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.1446, allocations: 27.98 kB / 361.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/0.1472, allocations: 1.936 MB / 363.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.1475, allocations: 31.92 kB / 363.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.1475, allocations: 19.94 kB / 363.2 MB, free: 15.18 MB / 302.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: 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.0001983/0.1477, allocations: 149.8 kB / 363.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.1478, allocations: 23.72 kB / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.1478, allocations: 34.12 kB / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1478, allocations: 4 kB / 363.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1479, allocations: 0 / 363.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1479, allocations: 0 / 363.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1489, allocations: 0.7752 MB / 364.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.149, allocations: 0 / 364.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.1491, allocations: 23.92 kB / 364.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.1493, allocations: 92.84 kB / 364.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.1494, allocations: 8 kB / 364.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.1516, allocations: 1.933 MB / 366.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1516, allocations: 3.938 kB / 366.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006956/0.1523, allocations: 468.8 kB / 366.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1525, allocations: 124.8 kB / 366.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.1525, allocations: 4.109 kB / 366.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1527, allocations: 23.92 kB / 366.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.1528, allocations: 35.94 kB / 366.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.1529, allocations: 12.06 kB / 366.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.153, allocations: 172.5 kB / 367.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1531, allocations: 0 / 367.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004845/0.1535, allocations: 91.75 kB / 367.2 MB, free: 10.98 MB / 302.1 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.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.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.001129/0.1547, allocations: 1.001 MB / 368.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007393/0.1554, allocations: 358.7 kB / 368.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1555, allocations: 0 / 368.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004145/0.1559, allocations: 259.6 kB / 368.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.1564, allocations: 60.7 kB / 368.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.1593, allocations: 1.639 MB / 370.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.1597, allocations: 0.7638 MB / 371.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.1598, allocations: 26.27 kB / 371.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.16, allocations: 83.41 kB / 371.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.16, allocations: 0 / 371.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.1824, allocations: 6.648 MB / 378 MB, free: 240 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.1827, allocations: 218.4 kB / 378.2 MB, free: 16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.204, allocations: 0 / 378.2 MB, free: 16 MB / 318.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