Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.6 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007432/0.0007433, allocations: 104.9 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002096/0.0002097, allocations: 11.98 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1882, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.002582/0.1908, allocations: 3.506 MB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.192, allocations: 1 MB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.1922, allocations: 4 kB / 412.6 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1923, allocations: 64.27 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.1925, allocations: 157.6 kB / 412.8 MB, free: 22.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.1929, allocations: 132.8 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004417/0.1933, allocations: 0.7052 MB / 413.6 MB, free: 22.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.1935, allocations: 159 kB / 413.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.1938, allocations: 251 kB / 414 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.1941, allocations: 302.8 kB / 414.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.1941, allocations: 36 kB / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.594e-05/0.1942, allocations: 39.94 kB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.1943, allocations: 103.5 kB / 414.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1945, allocations: 300.4 kB / 414.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.1949, allocations: 0.632 MB / 415.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1949, allocations: 0 / 415.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1949, allocations: 0 / 415.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1949, allocations: 0 / 415.4 MB, free: 20.29 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002056/0.197, allocations: 0.9993 MB / 416.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.197, allocations: 12.03 kB / 416.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.1972, allocations: 72.27 kB / 416.5 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.1976, allocations: 414 kB / 416.9 MB, free: 18.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.1976, allocations: 29.38 kB / 416.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.406e-05/0.1977, allocations: 36.38 kB / 417 MB, free: 18.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.1989, allocations: 0.6383 MB / 417.6 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.199, allocations: 0 / 417.6 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/0.199, allocations: 12 kB / 417.6 MB, free: 17.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.199, allocations: 11.98 kB / 417.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/0.2007, allocations: 0.7104 MB / 418.3 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/0.2037, allocations: 2.207 MB / 420.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003565/0.2072, allocations: 0.9917 MB / 421.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009082/0.2082, allocations: 432.7 kB / 421.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.285e-05/0.2082, allocations: 16.31 kB / 422 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.2092, allocations: 462.7 kB / 422.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.374e-06/0.2092, allocations: 0 / 422.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.01309/0.2223, allocations: 2.645 MB / 425.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.2224, allocations: 85.09 kB / 425.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.2228, allocations: 402 kB / 425.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.2229, allocations: 33.7 kB / 425.6 MB, free: 9.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.223, allocations: 232.6 kB / 425.8 MB, free: 9.578 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.2231, allocations: 134 kB / 425.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.2231, allocations: 4 kB / 425.9 MB, free: 9.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.451e-05/0.2232, allocations: 370.7 kB / 426.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008116/0.224, allocations: 332.6 kB / 426.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/0.2248, allocations: 374.1 kB / 427 MB, free: 8.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.2264, allocations: 0.6616 MB / 427.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2264, allocations: 0 / 427.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002197/0.2286, allocations: 0.9787 MB / 428.6 MB, free: 6.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.2287, allocations: 37.69 kB / 428.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2287, allocations: 0 / 428.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.2297, allocations: 423.5 kB / 429.1 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.2302, allocations: 107.8 kB / 429.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006757/0.237, allocations: 3.5 MB / 432.7 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006105/0.2376, allocations: 107.7 kB / 432.8 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.2377, allocations: 19.98 kB / 432.8 MB, free: 2.383 MB / 298.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.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked 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.0002042/0.2379, allocations: 169.8 kB / 433 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.967e-05/0.2379, allocations: 43.44 kB / 433 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.915e-05/0.238, allocations: 60.45 kB / 433.1 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.238, allocations: 7.938 kB / 433.1 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2381, allocations: 0 / 433.1 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2381, allocations: 0 / 433.1 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000496/0.2386, allocations: 0.6106 MB / 433.7 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2386, allocations: 0 / 433.7 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.239, allocations: 99.91 kB / 433.8 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009852/0.24, allocations: 423.4 kB / 434.2 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/0.2401, allocations: 15.92 kB / 434.2 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007301/0.2474, allocations: 3.478 MB / 437.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2474, allocations: 4 kB / 437.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00573/0.2531, allocations: 1.65 MB / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.2534, allocations: 188.3 kB / 439.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.441e-05/0.2535, allocations: 12 kB / 439.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.2541, allocations: 99.84 kB / 439.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.2542, allocations: 47.92 kB / 439.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.719e-05/0.2543, allocations: 8 kB / 439.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003183/0.2546, allocations: 291.1 kB / 440 MB, free: 10.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2546, allocations: 0 / 440 MB, free: 10.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005917/0.2552, allocations: 167.8 kB / 440.1 MB, free: 10.81 MB / 314.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001669/0.2554, allocations: 119.4 kB / 440.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.258, allocations: 1.009 MB / 441.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.258, allocations: 0 / 441.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.2595, allocations: 0.5882 MB / 441.9 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.26, allocations: 88.14 kB / 441.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.263, allocations: 1.459 MB / 443.4 MB, free: 7.473 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.2634, allocations: 0.843 MB / 444.2 MB, free: 6.602 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.2635, allocations: 31.44 kB / 444.3 MB, free: 6.57 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2635, allocations: 0 / 444.3 MB, free: 6.57 MB / 314.7 MB Notification: Performance of Templates: time 0.0129/0.2765, allocations: 9.791 MB / 454.1 MB, free: 12.82 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches