Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_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.001571/0.001576, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.05/2.05, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001149/0.001149, allocations: 98.5 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 8 kB / 327 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3253, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003318/0.3287, allocations: 2.323 MB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.3305, allocations: 0.7565 MB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002196/0.3307, allocations: 4.188 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.933e-05/0.3308, allocations: 36.03 kB / 377.7 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.3312, allocations: 118.2 kB / 377.9 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.3315, allocations: 69.22 kB / 377.9 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000435/0.332, allocations: 271.4 kB / 378.2 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/0.3323, allocations: 94.41 kB / 378.3 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.3325, allocations: 123 kB / 378.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.3327, allocations: 127.7 kB / 378.5 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.3328, allocations: 16.34 kB / 378.5 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.121e-05/0.3329, allocations: 19.19 kB / 378.6 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.958e-05/0.333, allocations: 51.19 kB / 378.6 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.718e-05/0.3331, allocations: 87.7 kB / 378.7 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003718/0.3334, allocations: 312.8 kB / 379 MB, free: 42.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3334, allocations: 0 / 379 MB, free: 42.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.3335, allocations: 1.031 kB / 379 MB, free: 42.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3335, allocations: 4 kB / 379 MB, free: 42.09 MB / 298.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.001218/0.3347, allocations: 0.5786 MB / 379.6 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3348, allocations: 13.72 kB / 379.6 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.736e-05/0.3349, allocations: 63.44 kB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.111e-05/0.335, allocations: 32.62 kB / 379.7 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.3353, allocations: 268.8 kB / 380 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.3354, allocations: 26.64 kB / 380 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.3355, allocations: 28.52 kB / 380 MB, free: 41.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007164/0.3362, allocations: 285.8 kB / 380.3 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3362, allocations: 1.156 kB / 380.3 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.372e-05/0.3363, allocations: 10.12 kB / 380.3 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3363, allocations: 6.875 kB / 380.3 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006384/0.3369, allocations: 208.5 kB / 380.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.3393, allocations: 1.175 MB / 381.7 MB, free: 39.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007392/0.3401, allocations: 212.6 kB / 381.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.3402, allocations: 1.562 kB / 381.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.3406, allocations: 178.2 kB / 382.1 MB, free: 39.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.595e-06/0.3406, allocations: 0 / 382.1 MB, free: 39.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.002185/0.3428, allocations: 0.509 MB / 382.6 MB, free: 39.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.3429, allocations: 113.5 kB / 382.7 MB, free: 39.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003256/0.3432, allocations: 239.6 kB / 382.9 MB, free: 39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.3433, allocations: 30.98 kB / 383 MB, free: 38.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3434, allocations: 225 kB / 383.2 MB, free: 38.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.774e-05/0.3435, allocations: 64.39 kB / 383.2 MB, free: 38.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.3435, allocations: 5.188 kB / 383.2 MB, free: 38.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.217e-05/0.3436, allocations: 320.9 kB / 383.6 MB, free: 38.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.3438, allocations: 79.28 kB / 383.6 MB, free: 38.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.3441, allocations: 123.6 kB / 383.8 MB, free: 38.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.3444, allocations: 77.05 kB / 383.8 MB, free: 38.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3444, allocations: 1.031 kB / 383.8 MB, free: 38.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007746/0.3452, allocations: 282.6 kB / 384.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3453, allocations: 6.438 kB / 384.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3453, allocations: 4.984 kB / 384.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005228/0.3458, allocations: 87.94 kB / 384.2 MB, free: 38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.3461, allocations: 34.64 kB / 384.2 MB, free: 37.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.3489, allocations: 1.961 MB / 386.2 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.3494, allocations: 37.05 kB / 386.2 MB, free: 36.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.014e-05/0.3494, allocations: 13.66 kB / 386.2 MB, free: 36.18 MB / 298.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,$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.0002241/0.3497, allocations: 150.3 kB / 386.4 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.3497, allocations: 27.67 kB / 386.4 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.067e-05/0.3498, allocations: 31.58 kB / 386.5 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3498, allocations: 3.188 kB / 386.5 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3498, allocations: 0 / 386.5 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.3499, allocations: 0 / 386.5 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004513/0.3503, allocations: 357.5 kB / 386.8 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3503, allocations: 3.938 kB / 386.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.3506, allocations: 21.14 kB / 386.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000421/0.351, allocations: 94.53 kB / 386.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.351, allocations: 5.5 kB / 386.9 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002836/0.3539, allocations: 1.965 MB / 388.9 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3539, allocations: 0 / 388.9 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.3551, allocations: 417.8 kB / 389.3 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.3553, allocations: 120.8 kB / 389.4 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.3553, allocations: 11.95 kB / 389.4 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.3556, allocations: 28.03 kB / 389.5 MB, free: 33.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3558, allocations: 31.95 kB / 389.5 MB, free: 33.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.3558, allocations: 8 kB / 389.5 MB, free: 33.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001986/0.356, allocations: 176.4 kB / 389.7 MB, free: 33.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.356, allocations: 0 / 389.7 MB, free: 33.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005917/0.3566, allocations: 87.84 kB / 389.8 MB, free: 33.01 MB / 298.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.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.001317/0.358, allocations: 0.956 MB / 390.7 MB, free: 32.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000927/0.3589, allocations: 358.5 kB / 391.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3589, allocations: 0 / 391.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.3595, allocations: 270.6 kB / 391.3 MB, free: 31.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.36, allocations: 45.3 kB / 391.4 MB, free: 31.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.3635, allocations: 1.961 MB / 393.3 MB, free: 29.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3638, allocations: 0.7713 MB / 394.1 MB, free: 28.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.364, allocations: 83.41 kB / 394.2 MB, free: 28.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.323e-06/0.364, allocations: 4 kB / 394.2 MB, free: 28.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.59/2.954, allocations: 5.76 MB / 399.9 MB, free: 22.67 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat