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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 109.4 kB / 18.4 MB, free: 4.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002065/0.002066, allocations: 189.2 kB / 19.33 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 48.22 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08202/0.08342, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004918/0.08837, allocations: 3.903 MB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1877/0.2761, allocations: 1.017 MB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004225/0.2765, allocations: 6.375 kB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.2768, allocations: 86.77 kB / 380.8 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.2772, allocations: 160.8 kB / 381 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.2777, allocations: 205.7 kB / 381.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007021/0.2784, allocations: 0.7609 MB / 381.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.2787, allocations: 176.1 kB / 382.1 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003661/0.279, allocations: 297 kB / 382.4 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003938/0.2795, allocations: 332.6 kB / 382.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.2796, allocations: 77.06 kB / 382.8 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.2798, allocations: 78.78 kB / 382.9 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.2799, allocations: 153 kB / 383 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003722/0.2803, allocations: 315 kB / 383.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009414/0.2813, allocations: 0.8047 MB / 384.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2813, allocations: 0 / 384.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2813, allocations: 1.094 kB / 384.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.2813, allocations: 0 / 384.1 MB, free: 9.129 MB / 318.1 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.002419/0.2837, allocations: 0.9764 MB / 385.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2838, allocations: 9.625 kB / 385.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.2839, allocations: 56.72 kB / 385.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005622/0.2845, allocations: 411.4 kB / 385.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.2845, allocations: 30.55 kB / 385.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.378e-05/0.2846, allocations: 36.47 kB / 385.7 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.2859, allocations: 0.56 MB / 386.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.286, allocations: 8.266 kB / 386.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.286, allocations: 15.28 kB / 386.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.2861, allocations: 9.5 kB / 386.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.2879, allocations: 0.5741 MB / 386.8 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.2917, allocations: 2.002 MB / 388.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003718/0.2954, allocations: 0.7929 MB / 389.6 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000981/0.2964, allocations: 365.9 kB / 390 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.163e-05/0.2965, allocations: 11.55 kB / 390 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.2976, allocations: 398.3 kB / 390.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.935e-06/0.2976, allocations: 0 / 390.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009805/0.3074, allocations: 1.789 MB / 392.2 MB, free: 5.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.3075, allocations: 83.36 kB / 392.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006268/0.3082, allocations: 390.3 kB / 392.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.3082, allocations: 36.02 kB / 392.7 MB, free: 5.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.3084, allocations: 222.2 kB / 392.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.3086, allocations: 133.7 kB / 393 MB, free: 4.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.3088, allocations: 70.78 kB / 393.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3089, allocations: 349.5 kB / 393.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008911/0.3098, allocations: 267.9 kB / 393.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009038/0.3107, allocations: 321.2 kB / 394 MB, free: 4.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.3124, allocations: 0.5393 MB / 394.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.3124, allocations: 1.281 kB / 394.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004852/0.3173, allocations: 1.048 MB / 395.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.3173, allocations: 41.58 kB / 395.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3173, allocations: 0 / 395.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.3186, allocations: 395.8 kB / 396 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/0.3191, allocations: 83.2 kB / 396.1 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007658/0.3267, allocations: 3.679 MB / 399.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/0.3274, allocations: 80.44 kB / 399.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.3275, allocations: 17.05 kB / 399.9 MB, free: 0.9648 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0002318/0.3277, allocations: 176.6 kB / 400 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.3278, allocations: 44.22 kB / 400.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.3279, allocations: 50.41 kB / 400.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3279, allocations: 8.266 kB / 400.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3279, allocations: 1.344 kB / 400.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3279, allocations: 0 / 400.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005646/0.3285, allocations: 0.5921 MB / 400.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3285, allocations: 4 kB / 400.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.329, allocations: 75.44 kB / 400.8 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.3301, allocations: 397.1 kB / 401.2 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.3301, allocations: 11.05 kB / 401.2 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008209/0.3383, allocations: 3.653 MB / 404.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3384, allocations: 5.938 kB / 404.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.3428, allocations: 1.254 MB / 406.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.3432, allocations: 163.8 kB / 406.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-05/0.3433, allocations: 15.75 kB / 406.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005261/0.3438, allocations: 68.39 kB / 406.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.344, allocations: 50.45 kB / 406.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.344, allocations: 11.69 kB / 406.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003255/0.3443, allocations: 280.9 kB / 406.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3444, allocations: 0 / 406.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006628/0.345, allocations: 174.8 kB / 406.9 MB, free: 12.11 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * 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 (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.0001796/0.3452, allocations: 107.3 kB / 407 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.3477, allocations: 0.8795 MB / 407.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3478, allocations: 1.219 kB / 407.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.3492, allocations: 0.541 MB / 408.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.3497, allocations: 75.17 kB / 408.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.3527, allocations: 1.181 MB / 409.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3531, allocations: 0.832 MB / 410.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.3532, allocations: 31.44 kB / 410.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3532, allocations: 0 / 410.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of Templates: time 0.01339/0.3666, allocations: 9.44 MB / 420 MB, free: 1.566 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches