Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 109.4 kB / 18.4 MB, free: 4.699 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.001228/0.001228, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.489/1.489, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001411/0.001412, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1066, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005345/0.112, allocations: 2.883 MB / 378.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.114, allocations: 0.7679 MB / 379.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.1145, allocations: 4 kB / 379.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.1148, allocations: 51.5 kB / 379.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004295/0.1152, allocations: 103.1 kB / 379.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.1157, allocations: 99.81 kB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006799/0.1164, allocations: 414.2 kB / 380.1 MB, free: 252 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003047/0.1167, allocations: 127.2 kB / 380.2 MB, free: 120 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2128/0.3295, allocations: 148.2 kB / 380.4 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.3299, allocations: 162.7 kB / 380.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.3301, allocations: 37.12 kB / 380.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.3303, allocations: 39.03 kB / 380.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.164e-05/0.3304, allocations: 76.25 kB / 380.7 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002697/0.3306, allocations: 179.7 kB / 380.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006297/0.3313, allocations: 428.5 kB / 381.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3313, allocations: 1.031 kB / 381.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3313, allocations: 0 / 381.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.3313, allocations: 0 / 381.3 MB, free: 9.715 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00119/0.3325, allocations: 0.628 MB / 381.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3326, allocations: 10.38 kB / 381.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.3327, allocations: 36.5 kB / 382 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/0.3332, allocations: 289.5 kB / 382.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.3332, allocations: 18.75 kB / 382.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.3333, allocations: 23.45 kB / 382.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.3339, allocations: 288.5 kB / 382.6 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3339, allocations: 7.188 kB / 382.6 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.334, allocations: 10.25 kB / 382.6 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.334, allocations: 6.875 kB / 382.6 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004378/0.3344, allocations: 204.1 kB / 382.8 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3362, allocations: 1.142 MB / 383.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.3367, allocations: 221 kB / 384.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.337, allocations: 146.1 kB / 384.3 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3371, allocations: 6.031 kB / 384.3 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.3373, allocations: 167.3 kB / 384.5 MB, free: 8.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.3373, allocations: 0 / 384.5 MB, free: 8.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001334/0.3387, allocations: 0.5122 MB / 385 MB, free: 8.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3387, allocations: 132.8 kB / 385.1 MB, free: 7.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.339, allocations: 245.9 kB / 385.3 MB, free: 7.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.339, allocations: 35.73 kB / 385.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.3391, allocations: 166.8 kB / 385.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.3391, allocations: 67.3 kB / 385.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.819e-05/0.3392, allocations: 52.16 kB / 385.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.3393, allocations: 333.6 kB / 386 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3395, allocations: 71.56 kB / 386.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.3396, allocations: 129.8 kB / 386.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.3399, allocations: 166.2 kB / 386.3 MB, free: 7.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3399, allocations: 1.188 kB / 386.3 MB, free: 7.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004297/0.3403, allocations: 293.6 kB / 386.6 MB, free: 7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3403, allocations: 5.969 kB / 386.6 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3404, allocations: 3.094 kB / 386.6 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.3407, allocations: 87.94 kB / 386.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.3408, allocations: 37.17 kB / 386.8 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.3427, allocations: 2.146 MB / 388.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.3429, allocations: 28.95 kB / 388.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.3429, allocations: 11.09 kB / 389 MB, free: 5.098 MB / 318.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.000122/0.3431, allocations: 154.3 kB / 389.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.3431, allocations: 28.16 kB / 389.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/0.3432, allocations: 33.91 kB / 389.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3432, allocations: 2.875 kB / 389.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3432, allocations: 1.469 kB / 389.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3432, allocations: 1.359 kB / 389.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008224/0.344, allocations: 0.7678 MB / 389.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.344, allocations: 0 / 389.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.3441, allocations: 19.11 kB / 390 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002404/0.3444, allocations: 97.86 kB / 390.1 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.3444, allocations: 6.469 kB / 390.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.3462, allocations: 2.151 MB / 392.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3462, allocations: 0 / 392.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005843/0.3468, allocations: 452.2 kB / 392.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.763e-05/0.3469, allocations: 125.7 kB / 392.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.3469, allocations: 7.266 kB / 392.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.3471, allocations: 18.45 kB / 392.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3472, allocations: 37.7 kB / 392.8 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.3472, allocations: 10 kB / 392.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.3474, allocations: 177.6 kB / 393 MB, free: 1.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3474, allocations: 0 / 393 MB, free: 1.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004351/0.3478, allocations: 89.38 kB / 393.1 MB, free: 1.91 MB / 318.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.000104/0.348, allocations: 106 kB / 393.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006141/0.3486, allocations: 364 kB / 393.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3486, allocations: 0 / 393.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.349, allocations: 266 kB / 393.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.3494, allocations: 54.22 kB / 393.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.3504, allocations: 0.6225 MB / 394.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.3507, allocations: 0.7638 MB / 395.3 MB, free: 336 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.3507, allocations: 24 kB / 395.3 MB, free: 324 kB / 318.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3507, allocations: 4 kB / 395.3 MB, free: 320 kB / 318.1 MB Notification: Performance of Templates: time 0.007409/0.3581, allocations: 4.674 MB / 400 MB, free: 15.79 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches