Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009296/0.0009297, allocations: 86.67 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.183e-05/3.185e-05, allocations: 4 kB / 350.6 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/0.4035, allocations: 80.47 MB / 482.6 MB, free: 8.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.4037, allocations: 75.38 kB / 482.7 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01196/0.4157, allocations: 5.215 MB / 487.9 MB, free: 4.602 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4157, allocations: 0 / 487.9 MB, free: 4.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.4157, allocations: 8 kB / 487.9 MB, free: 4.594 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.0008722/0.4166, allocations: 0.5439 MB / 488.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.392e-05/0.4167, allocations: 8.031 kB / 488.4 MB, free: 4.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.181e-05/0.4168, allocations: 62.72 kB / 488.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.417, allocations: 51.55 kB / 488.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.4173, allocations: 271.4 kB / 488.8 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.4173, allocations: 19.55 kB / 488.8 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.4174, allocations: 27.19 kB / 488.9 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.4179, allocations: 275.2 kB / 489.1 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4179, allocations: 0 / 489.1 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.4179, allocations: 20.23 kB / 489.1 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.4179, allocations: 4 kB / 489.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003312/0.4183, allocations: 185.3 kB / 489.3 MB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.4198, allocations: 1.15 MB / 490.5 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.4202, allocations: 213.7 kB / 490.7 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.4205, allocations: 138.1 kB / 490.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.4205, allocations: 4.172 kB / 490.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002247/0.4207, allocations: 162.3 kB / 491 MB, free: 1.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.4208, allocations: 0 / 491 MB, free: 1.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004961/0.4213, allocations: 267 kB / 491.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.4213, allocations: 132.5 kB / 491.4 MB, free: 1.539 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.4215, allocations: 216.1 kB / 491.6 MB, free: 1.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.4215, allocations: 33.27 kB / 491.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.521e-05/0.4216, allocations: 168.6 kB / 491.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.021e-05/0.4216, allocations: 69.81 kB / 491.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.4217, allocations: 7.375 kB / 491.9 MB, free: 1.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.171e-05/0.4217, allocations: 336.6 kB / 492.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.4218, allocations: 64.5 kB / 492.2 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.4219, allocations: 113.1 kB / 492.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.4221, allocations: 69.31 kB / 492.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4221, allocations: 224 / 492.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000359/0.4224, allocations: 289.5 kB / 492.7 MB, free: 256 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.4225, allocations: 7.953 kB / 492.7 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.4225, allocations: 0 / 492.7 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/0.4228, allocations: 88.81 kB / 492.8 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4229, allocations: 36.08 kB / 492.8 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/0.4251, allocations: 1.974 MB / 494.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.4253, allocations: 35.92 kB / 494.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.4254, allocations: 13.52 kB / 494.9 MB, free: 13.96 MB / 362.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 0.0001025/0.4255, allocations: 131.8 kB / 495 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.4255, allocations: 23.72 kB / 495 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.4256, allocations: 29.95 kB / 495 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4256, allocations: 4 kB / 495 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.4256, allocations: 0.875 kB / 495 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.4256, allocations: 3.984 kB / 495.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.4266, allocations: 0.7909 MB / 495.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.4266, allocations: 4 kB / 495.8 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.4268, allocations: 23.92 kB / 495.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002537/0.427, allocations: 84.8 kB / 496 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.4271, allocations: 9.5 kB / 496 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.4291, allocations: 1.938 MB / 497.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4292, allocations: 0 / 497.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.4297, allocations: 442.7 kB / 498.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.4299, allocations: 131.2 kB / 498.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.4299, allocations: 7.984 kB / 498.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.4301, allocations: 23.98 kB / 498.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.4302, allocations: 27.95 kB / 498.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.4303, allocations: 16.05 kB / 498.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001587/0.4304, allocations: 173.3 kB / 498.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4304, allocations: 0 / 498.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004779/0.4309, allocations: 93.61 kB / 498.8 MB, free: 9.797 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.0009006/0.4318, allocations: 1.047 MB / 499.8 MB, free: 8.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005734/0.4324, allocations: 342.2 kB / 0.4885 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4324, allocations: 0 / 0.4885 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.4329, allocations: 259.6 kB / 0.4887 GB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.4332, allocations: 52.39 kB / 0.4887 GB, free: 8.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.4343, allocations: 471.9 kB / 0.4892 GB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.4346, allocations: 0.7716 MB / 0.49 GB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.4347, allocations: 22.08 kB / 0.49 GB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.4348, allocations: 84.34 kB / 0.4901 GB, free: 6.664 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4348, allocations: 0 / 0.4901 GB, free: 6.664 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.456, allocations: 6.63 MB / 0.4965 GB, free: 340 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/0.4563, allocations: 190.7 kB / 0.4967 GB, free: 104 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.251, allocations: 7.5 kB / 0.4967 GB, free: 100 kB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat