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.001343/0.001343, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002167/0.002167, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 68.48 kB / 306.9 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09152, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005241/0.0968, allocations: 4.128 MB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.09885, allocations: 1.06 MB / 362.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.09931, allocations: 8 kB / 362.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.09969, allocations: 67.44 kB / 362.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005014/0.1002, allocations: 150.8 kB / 362.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.1008, allocations: 203.8 kB / 363.1 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009058/0.1017, allocations: 0.7626 MB / 363.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.102, allocations: 149.8 kB / 364 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005021/0.1025, allocations: 275 kB / 364.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000452/0.1029, allocations: 326.6 kB / 364.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.1031, allocations: 40 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.1032, allocations: 43.98 kB / 364.6 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.1034, allocations: 131.4 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.1037, allocations: 294.5 kB / 365 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.1042, allocations: 0.6546 MB / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1043, allocations: 0 / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1043, allocations: 0 / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.1043, allocations: 0 / 365.7 MB, free: 5.965 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.00282/0.1071, allocations: 1.03 MB / 366.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1072, allocations: 16.03 kB / 366.7 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.1074, allocations: 72.17 kB / 366.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.108, allocations: 417.9 kB / 367.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.108, allocations: 29.38 kB / 367.3 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.401e-05/0.1081, allocations: 36.38 kB / 367.3 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1095, allocations: 0.6071 MB / 367.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1096, allocations: 0 / 367.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.1096, allocations: 16 kB / 367.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.1096, allocations: 8 kB / 367.9 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.1115, allocations: 0.6401 MB / 368.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00387/0.1154, allocations: 2.184 MB / 370.7 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1493/0.2647, allocations: 0.8564 MB / 371.6 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.2659, allocations: 398.4 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.266, allocations: 12.31 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.2672, allocations: 431 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.126e-06/0.2672, allocations: 3.703 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01541/0.2827, allocations: 2.38 MB / 374.8 MB, free: 19.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.2827, allocations: 94.67 kB / 374.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.2832, allocations: 423 kB / 375.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/0.2833, allocations: 32.33 kB / 375.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.2834, allocations: 233 kB / 375.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.2836, allocations: 135.7 kB / 375.7 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.2837, allocations: 73.67 kB / 375.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.114e-05/0.2838, allocations: 357.1 kB / 376.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009427/0.2847, allocations: 298.5 kB / 376.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008893/0.2856, allocations: 336.9 kB / 376.7 MB, free: 18.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.2873, allocations: 0.5968 MB / 377.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2873, allocations: 0 / 377.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003539/0.2909, allocations: 1.005 MB / 378.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.2909, allocations: 32.48 kB / 378.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2909, allocations: 1.188 kB / 378.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.2922, allocations: 435.8 kB / 378.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/0.2927, allocations: 86.98 kB / 378.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00773/0.3005, allocations: 3.455 MB / 382.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007233/0.3012, allocations: 97.39 kB / 382.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.3013, allocations: 15.55 kB / 382.5 MB, free: 15.7 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.0002217/0.3015, allocations: 173.6 kB / 382.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.418e-05/0.3016, allocations: 46.5 kB / 382.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3017, allocations: 61.42 kB / 382.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.3017, allocations: 8.109 kB / 382.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3017, allocations: 0 / 382.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-06/0.3017, allocations: 3.156 kB / 382.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006285/0.3024, allocations: 0.6066 MB / 383.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3024, allocations: 0 / 383.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.3029, allocations: 89.52 kB / 383.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.3041, allocations: 433 kB / 383.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.786e-05/0.3041, allocations: 14.27 kB / 383.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007437/0.3116, allocations: 3.442 MB / 387.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3116, allocations: 4 kB / 387.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005704/0.3173, allocations: 1.501 MB / 388.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.3176, allocations: 177.4 kB / 389 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.369e-05/0.3177, allocations: 14.36 kB / 389 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.3182, allocations: 77.16 kB / 389.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.3184, allocations: 44.22 kB / 389.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.3184, allocations: 14.92 kB / 389.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003017/0.3187, allocations: 291.7 kB / 389.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3187, allocations: 0.6562 kB / 389.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006504/0.3194, allocations: 178.9 kB / 389.6 MB, free: 11.52 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.0001444/0.3196, allocations: 106.3 kB / 389.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002488/0.322, allocations: 0.974 MB / 390.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3221, allocations: 3.938 kB / 390.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.3235, allocations: 0.5764 MB / 391.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.324, allocations: 85.03 kB / 391.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.327, allocations: 1.465 MB / 392.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.3273, allocations: 0.8383 MB / 393.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.3274, allocations: 32.05 kB / 393.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3274, allocations: 4 kB / 393.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of Templates: time 0.009577/0.337, allocations: 9.956 MB / 403.6 MB, free: 0.8125 MB / 302.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 -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