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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 100.1 kB / 16.94 MB, free: 5.984 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.001104/0.001104, allocations: 179.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004573/0.0004574, allocations: 19.28 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.0928, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002737/0.09558, allocations: 2.315 MB / 330.7 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.09677, allocations: 0.7532 MB / 331.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.09691, allocations: 4 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.836e-05/0.09699, allocations: 43.67 kB / 331.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002268/0.09722, allocations: 115.7 kB / 331.6 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002494/0.09748, allocations: 71.8 kB / 331.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.09782, allocations: 263.4 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.09802, allocations: 97.84 kB / 332.1 MB, free: 344 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.09818, allocations: 123.5 kB / 332.2 MB, free: 220 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.09837, allocations: 135.4 kB / 332.3 MB, free: 84 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.09841, allocations: 16 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.036e-05/0.09845, allocations: 16 kB / 332.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.09853, allocations: 55.84 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.744e-05/0.09863, allocations: 81.58 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.09892, allocations: 319.3 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.09893, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.09894, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.09895, allocations: 0 / 332.8 MB, free: 15.6 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.0008927/0.09985, allocations: 0.5738 MB / 333.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.0999, allocations: 12.03 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.469e-05/0.09998, allocations: 62.53 kB / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.693e-05/0.1001, allocations: 35.56 kB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.1004, allocations: 274.4 kB / 333.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.1004, allocations: 24.52 kB / 333.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.1005, allocations: 24 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.1009, allocations: 292.5 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.101, allocations: 0 / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.101, allocations: 12 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.101, allocations: 4 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003868/0.1014, allocations: 214.1 kB / 334.3 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.1031, allocations: 1.16 MB / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.1036, allocations: 219.2 kB / 335.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.1036, allocations: 4.188 kB / 335.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.104, allocations: 167.8 kB / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.104, allocations: 0 / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001303/0.1053, allocations: 0.5156 MB / 336.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.1054, allocations: 110.8 kB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.1056, allocations: 237 kB / 336.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.1056, allocations: 33.7 kB / 336.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1058, allocations: 172.3 kB / 336.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.1058, allocations: 63.11 kB / 337 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.1059, allocations: 8 kB / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.106, allocations: 334.8 kB / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.1062, allocations: 79.91 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.1064, allocations: 116.5 kB / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.1066, allocations: 85.19 kB / 337.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1066, allocations: 0 / 337.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004783/0.1071, allocations: 292 kB / 337.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1071, allocations: 11.88 kB / 337.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.1071, allocations: 12.05 kB / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1074, allocations: 88.8 kB / 338 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.1076, allocations: 27.98 kB / 338 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/0.1096, allocations: 1.963 MB / 340 MB, free: 7.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.1098, allocations: 35.92 kB / 340 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.1098, allocations: 12 kB / 340 MB, free: 7.922 MB / 286.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.0001694/0.11, allocations: 137.8 kB / 340.1 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.753e-05/0.1101, allocations: 31.67 kB / 340.2 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.583e-05/0.1101, allocations: 30.28 kB / 340.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1101, allocations: 3.938 kB / 340.2 MB, free: 7.711 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.1101, allocations: 4 kB / 340.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1101, allocations: 4 kB / 340.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.1105, allocations: 357.3 kB / 340.6 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.1105, allocations: 0 / 340.6 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.1106, allocations: 27.92 kB / 340.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002419/0.1109, allocations: 88.75 kB / 340.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.1109, allocations: 7.984 kB / 340.7 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.1129, allocations: 1.963 MB / 342.6 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1129, allocations: 112 / 342.6 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007049/0.1136, allocations: 418.1 kB / 343.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.1137, allocations: 116.8 kB / 343.2 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.1138, allocations: 15.94 kB / 343.2 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.114, allocations: 23.98 kB / 343.2 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.123e-05/0.1141, allocations: 31.95 kB / 343.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1141, allocations: 4 kB / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.1143, allocations: 176.5 kB / 343.4 MB, free: 4.277 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1143, allocations: 4 kB / 343.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.1147, allocations: 92.16 kB / 343.5 MB, free: 4.184 MB / 286.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.001003/0.1157, allocations: 0.9564 MB / 344.5 MB, free: 3.191 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006923/0.1164, allocations: 354.7 kB / 344.8 MB, free: 2.832 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1164, allocations: 4.188 kB / 344.8 MB, free: 2.828 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003744/0.1168, allocations: 258.5 kB / 345.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.1171, allocations: 48.73 kB / 345.1 MB, free: 2.516 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.1197, allocations: 1.941 MB / 347.1 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1201, allocations: 0.7713 MB / 347.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1202, allocations: 18.3 kB / 347.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.1203, allocations: 83.41 kB / 347.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1203, allocations: 0 / 347.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.1397, allocations: 6.678 MB / 354.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002365/0.14, allocations: 219.6 kB / 354.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/1.955, allocations: 3.938 kB / 354.8 MB, free: 8.695 MB / 302.1 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) Environment - environmentSimulation: 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