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.001311/0.001311, allocations: 101.5 kB / 18.39 MB, free: 4.66 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.001363/0.001363, allocations: 183 kB / 19.33 MB, free: 3.738 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.303/1.303, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001347/0.001348, allocations: 51.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09504, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004714/0.09981, allocations: 2.879 MB / 378.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.1016, allocations: 0.7796 MB / 379.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.102, allocations: 11.94 kB / 379.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.1023, allocations: 47.52 kB / 379.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000375/0.1027, allocations: 95.11 kB / 379.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.1031, allocations: 103.8 kB / 379.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000568/0.1037, allocations: 410.2 kB / 380.1 MB, free: 240 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.104, allocations: 131.2 kB / 380.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1918/0.2958, allocations: 150 kB / 380.4 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003409/0.2962, allocations: 162 kB / 380.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-05/0.2963, allocations: 37.03 kB / 380.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.553e-05/0.2964, allocations: 37.66 kB / 380.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.2965, allocations: 82.12 kB / 380.7 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.2967, allocations: 172.9 kB / 380.9 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005364/0.2972, allocations: 431.1 kB / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2972, allocations: 0 / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2972, allocations: 1.5 kB / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2972, allocations: 1.125 kB / 381.3 MB, free: 9.789 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.001047/0.2983, allocations: 0.6243 MB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.2984, allocations: 14.23 kB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.479e-05/0.2984, allocations: 33.81 kB / 382 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.2988, allocations: 290.7 kB / 382.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.2989, allocations: 18.06 kB / 382.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/0.2989, allocations: 27.77 kB / 382.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004878/0.2994, allocations: 284.3 kB / 382.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2994, allocations: 3.938 kB / 382.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.2995, allocations: 11.41 kB / 382.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2995, allocations: 7.094 kB / 382.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004271/0.2999, allocations: 208.1 kB / 382.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.3017, allocations: 1.141 MB / 383.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005312/0.3023, allocations: 214.5 kB / 384.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.3026, allocations: 151.6 kB / 384.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.3026, allocations: 6.578 kB / 384.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.3029, allocations: 164.9 kB / 384.5 MB, free: 8.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.964e-06/0.3029, allocations: 0 / 384.5 MB, free: 8.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001403/0.3043, allocations: 0.5081 MB / 385 MB, free: 8.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.3044, allocations: 139.4 kB / 385.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.3047, allocations: 245.4 kB / 385.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.3047, allocations: 35.86 kB / 385.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3048, allocations: 162.7 kB / 385.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.878e-05/0.3049, allocations: 72.22 kB / 385.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.305, allocations: 50.27 kB / 385.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/0.305, allocations: 334.9 kB / 386 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.3052, allocations: 70.55 kB / 386.1 MB, free: 7.367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.3054, allocations: 125.2 kB / 386.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.3056, allocations: 167 kB / 386.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3056, allocations: 1.5 kB / 386.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004839/0.3061, allocations: 302.2 kB / 386.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3062, allocations: 5.406 kB / 386.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3062, allocations: 0 / 386.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000345/0.3065, allocations: 95.77 kB / 386.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3067, allocations: 27.55 kB / 386.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.3086, allocations: 2.138 MB / 388.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.3089, allocations: 29.88 kB / 388.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.309, allocations: 6.172 kB / 388.9 MB, free: 5.148 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.0001732/0.3091, allocations: 156.9 kB / 389.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.3092, allocations: 32.97 kB / 389.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.3092, allocations: 31.28 kB / 389.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3093, allocations: 2.25 kB / 389.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3093, allocations: 1 kB / 389.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3093, allocations: 2.484 kB / 389.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009505/0.3102, allocations: 0.7693 MB / 389.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3103, allocations: 1.156 kB / 389.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3104, allocations: 25.75 kB / 390 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.3106, allocations: 94.42 kB / 390 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.3107, allocations: 6.609 kB / 390.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.3125, allocations: 2.142 MB / 392.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3125, allocations: 0 / 392.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006233/0.3132, allocations: 456.3 kB / 392.6 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.3133, allocations: 125.9 kB / 392.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.3133, allocations: 7.141 kB / 392.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.3135, allocations: 25.84 kB / 392.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.3136, allocations: 29.86 kB / 392.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.3137, allocations: 10.91 kB / 392.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.3138, allocations: 174.6 kB / 393 MB, free: 1.977 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3138, allocations: 1.094 kB / 393 MB, free: 1.977 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004916/0.3143, allocations: 88.25 kB / 393.1 MB, free: 1.961 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.0001221/0.3145, allocations: 111 kB / 393.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006552/0.3151, allocations: 360.6 kB / 393.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3151, allocations: 1.219 kB / 393.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.3155, allocations: 264.8 kB / 393.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.316, allocations: 62.09 kB / 393.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.3172, allocations: 0.6301 MB / 394.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3175, allocations: 0.7594 MB / 395.3 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.584e-05/0.3176, allocations: 24.83 kB / 395.3 MB, free: 364 kB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3176, allocations: 0 / 395.3 MB, free: 364 kB / 318.1 MB Notification: Performance of Templates: time 0.009665/0.3273, allocations: 4.712 MB / 400 MB, free: 15.77 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