Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",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.001071/0.001071, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007443/0.0007443, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.051e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.09389, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3212/0.4151, allocations: 80.33 MB / 450.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.4154, allocations: 70.77 kB / 450.5 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02456/0.44, allocations: 8.577 MB / 459.1 MB, free: 5.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.44, allocations: 7.938 kB / 459.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.44, allocations: 8 kB / 459.1 MB, free: 5.598 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001821/0.4418, allocations: 0.8293 MB / 459.9 MB, free: 4.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.4419, allocations: 8.031 kB / 459.9 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.909e-05/0.442, allocations: 75.14 kB / 460 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4421, allocations: 55.34 kB / 460.1 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.4426, allocations: 390.2 kB / 460.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.4427, allocations: 29.91 kB / 460.5 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.756e-05/0.4428, allocations: 34.25 kB / 460.5 MB, free: 4.227 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008411/0.4436, allocations: 457.3 kB / 461 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.4436, allocations: 3.938 kB / 461 MB, free: 3.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-05/0.4437, allocations: 16 kB / 461 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.4437, allocations: 12 kB / 461 MB, free: 3.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007542/0.4445, allocations: 387 kB / 461.4 MB, free: 3.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003394/0.4479, allocations: 2.05 MB / 463.4 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003098/0.451, allocations: 0.7228 MB / 464.1 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004422/0.4514, allocations: 265.2 kB / 464.4 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.4515, allocations: 4 kB / 464.4 MB, free: 296 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005609/0.4521, allocations: 291.9 kB / 464.7 MB, free: 15.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.435e-06/0.4521, allocations: 0 / 464.7 MB, free: 15.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.001401/0.4535, allocations: 0.5607 MB / 465.3 MB, free: 15.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.772e-05/0.4536, allocations: 81.11 kB / 465.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000499/0.4541, allocations: 338.8 kB / 465.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.4542, allocations: 33.7 kB / 465.7 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.4544, allocations: 216.6 kB / 465.9 MB, free: 14.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.4545, allocations: 134.1 kB / 466 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.4546, allocations: 8 kB / 466 MB, free: 14.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002341/0.4548, allocations: 358.8 kB / 466.4 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.4552, allocations: 164.8 kB / 466.6 MB, free: 14.06 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.4555, allocations: 206 kB / 466.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.4558, allocations: 179.5 kB / 466.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4559, allocations: 0 / 466.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001124/0.457, allocations: 0.6011 MB / 467.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.457, allocations: 33.69 kB / 467.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4571, allocations: 4 kB / 467.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009036/0.458, allocations: 337.3 kB / 467.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.4584, allocations: 99.86 kB / 468 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006861/0.4653, allocations: 3.085 MB / 471.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007555/0.4661, allocations: 115.6 kB / 471.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.4662, allocations: 11.98 kB / 471.2 MB, free: 9.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001541/0.4663, allocations: 125.9 kB / 471.3 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.305e-05/0.4664, allocations: 39.53 kB / 471.4 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.4665, allocations: 56.5 kB / 471.4 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.4666, allocations: 8 kB / 471.4 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4666, allocations: 0 / 471.4 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.4666, allocations: 7.938 kB / 471.4 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006912/0.4673, allocations: 0.5833 MB / 472 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4673, allocations: 0 / 472 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004417/0.4677, allocations: 79.94 kB / 472.1 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008297/0.4686, allocations: 336.7 kB / 472.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.4686, allocations: 11.98 kB / 472.4 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006734/0.4754, allocations: 3.074 MB / 475.5 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4754, allocations: 4 kB / 475.5 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.4772, allocations: 0.8372 MB / 476.4 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.4774, allocations: 164.6 kB / 476.5 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.066e-05/0.4775, allocations: 19.94 kB / 476.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005938/0.4781, allocations: 87.92 kB / 476.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.4783, allocations: 43.92 kB / 476.7 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.4783, allocations: 12 kB / 476.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003306/0.4786, allocations: 273.2 kB / 476.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4786, allocations: 3.938 kB / 476.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006363/0.4793, allocations: 167.7 kB / 477.1 MB, free: 3.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001954/0.4813, allocations: 1.397 MB / 478.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.4826, allocations: 0.6624 MB / 479.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4826, allocations: 0 / 479.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000867/0.4835, allocations: 442.2 kB / 479.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.484, allocations: 80.3 kB / 479.7 MB, free: 464 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.4865, allocations: 0.9441 MB / 480.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.4869, allocations: 0.8436 MB / 481.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002239/0.4872, allocations: 43.22 kB / 481.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.4874, allocations: 151.4 kB / 481.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4874, allocations: 0 / 481.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.5167, allocations: 14.58 MB / 496.2 MB, free: 15.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/0.5169, allocations: 187.9 kB / 496.4 MB, free: 15.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.245/2.762, allocations: 0 / 496.4 MB, free: 15.59 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)