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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001693/0.001693, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00234/0.00234, allocations: 209.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.454/2.454, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4832/0.4854, allocations: 50.54 MB / 409.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.007656/0.4931, allocations: 2.94 MB / 412.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.4959, allocations: 0.7907 MB / 413.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003633/0.4963, allocations: 7.938 kB / 413.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.4966, allocations: 47.5 kB / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003907/0.497, allocations: 99.11 kB / 413.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.4976, allocations: 119.8 kB / 413.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007473/0.4984, allocations: 406.3 kB / 414.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003883/0.4988, allocations: 139.2 kB / 414.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004211/0.4993, allocations: 159.4 kB / 414.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.4996, allocations: 167.2 kB / 414.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.802e-05/0.4997, allocations: 36 kB / 414.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.4999, allocations: 40 kB / 414.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.5, allocations: 75.77 kB / 414.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.5003, allocations: 179.2 kB / 415.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006836/0.501, allocations: 435.8 kB / 415.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.501, allocations: 0 / 415.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.501, allocations: 0 / 415.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.5011, allocations: 4 kB / 415.5 MB, free: 12.07 MB / 334.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.001596/0.5027, allocations: 0.6245 MB / 416.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.5027, allocations: 8.031 kB / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.503, allocations: 48.55 kB / 416.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.5037, allocations: 288.8 kB / 416.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.5037, allocations: 16.94 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.832e-05/0.5038, allocations: 28.31 kB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008322/0.5047, allocations: 288.8 kB / 416.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.5047, allocations: 4 kB / 416.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.5048, allocations: 12 kB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.5048, allocations: 11.94 kB / 416.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.5055, allocations: 206.1 kB / 417.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.5082, allocations: 1.144 MB / 418.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007441/0.509, allocations: 214.6 kB / 418.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005433/0.5096, allocations: 140.8 kB / 418.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.5096, allocations: 0 / 418.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005513/0.5102, allocations: 181.6 kB / 418.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.275e-06/0.5102, allocations: 0 / 418.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002539/0.5128, allocations: 0.5068 MB / 419.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.5129, allocations: 136.5 kB / 419.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.5134, allocations: 244.9 kB / 419.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.5135, allocations: 33.7 kB / 419.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.5137, allocations: 164.5 kB / 419.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.5138, allocations: 75 kB / 419.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.514, allocations: 45.7 kB / 419.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.5142, allocations: 326.8 kB / 420.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.5145, allocations: 79.97 kB / 420.3 MB, free: 6.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.5148, allocations: 121.1 kB / 420.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005762/0.5154, allocations: 179.3 kB / 420.6 MB, free: 6.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5155, allocations: 0 / 420.6 MB, free: 6.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009926/0.5165, allocations: 293.9 kB / 420.9 MB, free: 6.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.5165, allocations: 10.66 kB / 420.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.5165, allocations: 0 / 420.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006031/0.5171, allocations: 88.8 kB / 421 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.5174, allocations: 28.08 kB / 421 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004032/0.5214, allocations: 2.154 MB / 423.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.5219, allocations: 27.83 kB / 423.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.522, allocations: 8 kB / 423.2 MB, free: 3.906 MB / 334.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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002901/0.5223, allocations: 149.9 kB / 423.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-05/0.5224, allocations: 27.77 kB / 423.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-05/0.5225, allocations: 38.11 kB / 423.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.5225, allocations: 4 kB / 423.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5225, allocations: 0 / 423.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.5225, allocations: 0 / 423.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.5244, allocations: 0.7738 MB / 424.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.5245, allocations: 0 / 424.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.5247, allocations: 23.92 kB / 424.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005226/0.5252, allocations: 84.81 kB / 424.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.5253, allocations: 7.984 kB / 424.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003653/0.529, allocations: 2.15 MB / 426.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.529, allocations: 0 / 426.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.5302, allocations: 449.1 kB / 426.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.5304, allocations: 120.7 kB / 427 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.036e-05/0.5305, allocations: 12.12 kB / 427 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.5308, allocations: 19.97 kB / 427 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.531, allocations: 43.88 kB / 427.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.531, allocations: 4 kB / 427.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002804/0.5313, allocations: 176.5 kB / 427.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5313, allocations: 0 / 427.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008231/0.5322, allocations: 91.84 kB / 427.4 MB, free: 15.51 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002004/0.5324, allocations: 107.2 kB / 427.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.5334, allocations: 358.3 kB / 427.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5335, allocations: 0 / 427.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.5341, allocations: 274.7 kB / 428.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.5348, allocations: 60.81 kB / 428.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.5368, allocations: 0.6167 MB / 428.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.5373, allocations: 0.7678 MB / 429.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.384e-05/0.5374, allocations: 23.44 kB / 429.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5374, allocations: 0 / 429.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of Templates: time 0.01086/0.5483, allocations: 4.743 MB / 434.3 MB, free: 8.508 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches