Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_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_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 59.22 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1029, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005328/0.1083, allocations: 4.097 MB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.1106, allocations: 1.075 MB / 364.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002189/0.1108, allocations: 4 kB / 364.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1111, allocations: 87.14 kB / 364.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003649/0.1115, allocations: 182.4 kB / 364.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.112, allocations: 231.6 kB / 364.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008296/0.1128, allocations: 0.8212 MB / 365.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.1131, allocations: 164.9 kB / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004337/0.1136, allocations: 318.9 kB / 365.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003867/0.114, allocations: 362.6 kB / 366.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.1141, allocations: 80 kB / 366.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.1143, allocations: 92 kB / 366.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.1144, allocations: 159.4 kB / 366.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003055/0.1147, allocations: 342.4 kB / 366.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008303/0.1156, allocations: 0.8489 MB / 367.7 MB, free: 4.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1156, allocations: 4 kB / 367.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1156, allocations: 4 kB / 367.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1156, allocations: 0 / 367.7 MB, free: 4.461 MB / 302.1 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.002842/0.1185, allocations: 1.042 MB / 368.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1185, allocations: 8.031 kB / 368.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.1188, allocations: 72.17 kB / 368.8 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007419/0.1196, allocations: 422 kB / 369.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.1196, allocations: 29.38 kB / 369.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.711e-05/0.1197, allocations: 36.38 kB / 369.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.1212, allocations: 0.6071 MB / 369.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1213, allocations: 0 / 369.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.897e-05/0.1213, allocations: 19.98 kB / 369.9 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1213, allocations: 8 kB / 370 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/0.1232, allocations: 0.6401 MB / 370.6 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1652/0.2883, allocations: 2.168 MB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004002/0.2924, allocations: 0.8635 MB / 373.6 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.2935, allocations: 394.9 kB / 374 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.857e-05/0.2936, allocations: 10.75 kB / 374 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.2947, allocations: 438 kB / 374.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.884e-06/0.2947, allocations: 0 / 374.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0146/0.3093, allocations: 2.382 MB / 376.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.3094, allocations: 82.77 kB / 376.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/0.3099, allocations: 417.9 kB / 377.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.31, allocations: 36.14 kB / 377.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.3102, allocations: 237.8 kB / 377.6 MB, free: 18.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.3103, allocations: 137 kB / 377.7 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.3105, allocations: 69.83 kB / 377.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.3106, allocations: 356.3 kB / 378.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009084/0.3115, allocations: 294.8 kB / 378.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/0.3124, allocations: 341.8 kB / 378.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/0.3141, allocations: 0.5956 MB / 379.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3141, allocations: 0 / 379.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003483/0.3176, allocations: 1.002 MB / 380.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.3177, allocations: 33.61 kB / 380.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3177, allocations: 7.125 kB / 380.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.319, allocations: 440.6 kB / 380.8 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004983/0.3195, allocations: 86.02 kB / 380.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008215/0.3277, allocations: 3.809 MB / 384.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007181/0.3285, allocations: 97.08 kB / 384.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-05/0.3286, allocations: 10.69 kB / 384.8 MB, free: 14.4 MB / 302.1 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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 (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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002438/0.3288, allocations: 174.3 kB / 385 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3289, allocations: 51.38 kB / 385 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.3291, allocations: 60.5 kB / 385.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3291, allocations: 4.906 kB / 385.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3291, allocations: 0 / 385.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3291, allocations: 3.172 kB / 385.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.3297, allocations: 0.6132 MB / 385.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3298, allocations: 1.969 kB / 385.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.3302, allocations: 91.05 kB / 385.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.3315, allocations: 439.4 kB / 386.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.126e-05/0.3315, allocations: 9.328 kB / 386.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007588/0.3391, allocations: 3.797 MB / 390.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3391, allocations: 4.031 kB / 390.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005658/0.3448, allocations: 1.493 MB / 391.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.3451, allocations: 181.7 kB / 391.7 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.966e-05/0.3452, allocations: 10.77 kB / 391.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005944/0.3458, allocations: 73.81 kB / 391.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3459, allocations: 46.66 kB / 391.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.346, allocations: 15.69 kB / 391.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003197/0.3463, allocations: 299.6 kB / 392.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3463, allocations: 0 / 392.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006661/0.347, allocations: 182.8 kB / 392.3 MB, free: 9.684 MB / 302.1 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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00016/0.3472, allocations: 108.8 kB / 392.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.3498, allocations: 0.9757 MB / 393.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3498, allocations: 0 / 393.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.3513, allocations: 0.5906 MB / 394 MB, free: 8.656 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.3518, allocations: 84.09 kB / 394.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.3551, allocations: 1.247 MB / 395.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.3554, allocations: 0.8441 MB / 396.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.3557, allocations: 43.73 kB / 396.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3558, allocations: 31.94 kB / 396.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3558, allocations: 1.375 kB / 396.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Templates: time 0.02114/0.377, allocations: 13.95 MB / 410.2 MB, free: 10.47 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches