Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.8 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004884/0.0004886, allocations: 8 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2872, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003939/0.2912, allocations: 2.365 MB / 310.9 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.293, allocations: 0.7376 MB / 311.7 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2932, allocations: 7.938 kB / 311.7 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.869e-05/0.2933, allocations: 35.73 kB / 311.7 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.2937, allocations: 123.7 kB / 311.8 MB, free: 9.371 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.294, allocations: 63.81 kB / 311.9 MB, free: 9.309 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.2945, allocations: 271.3 kB / 312.1 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.2948, allocations: 101.9 kB / 312.2 MB, free: 8.941 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.295, allocations: 119.5 kB / 312.4 MB, free: 8.824 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.2953, allocations: 131.4 kB / 312.5 MB, free: 8.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.2953, allocations: 16 kB / 312.5 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.195e-05/0.2954, allocations: 16 kB / 312.5 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.2955, allocations: 47.77 kB / 312.6 MB, free: 8.617 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.2956, allocations: 85.58 kB / 312.7 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004729/0.2961, allocations: 312.1 kB / 313 MB, free: 8.223 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.2961, allocations: 4 kB / 313 MB, free: 8.219 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.2961, allocations: 0 / 313 MB, free: 8.219 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.2962, allocations: 3.938 kB / 313 MB, free: 8.215 MB / 250.7 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.00134/0.2975, allocations: 0.5777 MB / 313.5 MB, free: 7.586 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.2976, allocations: 15.97 kB / 313.6 MB, free: 7.57 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.2977, allocations: 62.53 kB / 313.6 MB, free: 7.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.2978, allocations: 31.62 kB / 313.7 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.2982, allocations: 274.5 kB / 313.9 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.2983, allocations: 16.56 kB / 313.9 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.2984, allocations: 24 kB / 314 MB, free: 7.121 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007587/0.2991, allocations: 288.5 kB / 314.2 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2992, allocations: 0 / 314.2 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.2992, allocations: 12 kB / 314.3 MB, free: 6.812 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.2992, allocations: 4 kB / 314.3 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006648/0.2999, allocations: 210.1 kB / 314.5 MB, free: 6.602 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.3025, allocations: 1.176 MB / 315.6 MB, free: 5.348 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007823/0.3033, allocations: 219.2 kB / 315.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.3033, allocations: 192 / 315.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004927/0.3038, allocations: 171.7 kB / 316 MB, free: 4.938 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.844e-06/0.3038, allocations: 3.938 kB / 316 MB, free: 4.934 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.002258/0.3061, allocations: 0.5182 MB / 316.5 MB, free: 4.391 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.3062, allocations: 106.8 kB / 316.6 MB, free: 4.262 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.3066, allocations: 237 kB / 316.9 MB, free: 4.023 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.3066, allocations: 33.7 kB / 316.9 MB, free: 3.984 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3068, allocations: 164.5 kB / 317.1 MB, free: 3.82 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.157e-05/0.3069, allocations: 67.02 kB / 317.1 MB, free: 3.754 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.3069, allocations: 8 kB / 317.1 MB, free: 3.746 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3071, allocations: 334.8 kB / 317.5 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.3073, allocations: 75.97 kB / 317.5 MB, free: 3.336 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.3077, allocations: 120.5 kB / 317.7 MB, free: 3.203 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.308, allocations: 89.12 kB / 317.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.308, allocations: 0 / 317.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000834/0.3088, allocations: 299.9 kB / 318 MB, free: 2.816 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3089, allocations: 7.953 kB / 318.1 MB, free: 2.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3089, allocations: 4 kB / 318.1 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004991/0.3094, allocations: 88.86 kB / 318.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.3097, allocations: 27.98 kB / 318.2 MB, free: 2.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.3129, allocations: 1.952 MB / 320.1 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.3134, allocations: 35.86 kB / 320.2 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.3134, allocations: 16 kB / 320.2 MB, free: 0.5508 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002463/0.3137, allocations: 151.6 kB / 320.3 MB, free: 404 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.3137, allocations: 27.66 kB / 320.3 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.3139, allocations: 30.17 kB / 320.4 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3139, allocations: 4 kB / 320.4 MB, free: 340 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3139, allocations: 0 / 320.4 MB, free: 340 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3139, allocations: 3.984 kB / 320.4 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005442/0.3145, allocations: 353.3 kB / 320.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3145, allocations: 7.938 kB / 320.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.3147, allocations: 19.98 kB / 320.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004323/0.3152, allocations: 84.8 kB / 320.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.3152, allocations: 8 kB / 320.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003251/0.3185, allocations: 1.975 MB / 322.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3185, allocations: 384 / 322.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.3197, allocations: 413.4 kB / 323.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.3199, allocations: 120.8 kB / 323.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.725e-05/0.32, allocations: 12.12 kB / 323.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.3203, allocations: 23.92 kB / 323.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.3205, allocations: 35.88 kB / 323.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.3205, allocations: 8 kB / 323.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.3208, allocations: 176.5 kB / 323.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3208, allocations: 0 / 323.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005764/0.3214, allocations: 87.84 kB / 323.7 MB, free: 12.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0016/0.323, allocations: 0.9582 MB / 324.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.324, allocations: 354.1 kB / 325 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3241, allocations: 0 / 325 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006301/0.3247, allocations: 274.6 kB / 325.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.3252, allocations: 48.36 kB / 325.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.3292, allocations: 1.635 MB / 326.9 MB, free: 9.434 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.3296, allocations: 0.7674 MB / 327.7 MB, free: 8.637 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.3298, allocations: 22.28 kB / 327.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.33, allocations: 83.41 kB / 327.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.33, allocations: 0 / 327.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.3631, allocations: 6.677 MB / 334.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003442/0.3635, allocations: 225.3 kB / 334.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/2.846, allocations: 3.938 kB / 334.7 MB, free: 1.633 MB / 266.7 MB "" Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.useHeatPort,R.v,V.V,V.freqHz,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.phase,V.signalSource.amplitude,V.signalSource.freqHz,V.signalSource.offset,V.signalSource.phase,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,der(idealTriac.capacitor.v),ground.p.i,ground.p.v,idealTriac.Cdis,idealTriac.Goff,idealTriac.Rdis,idealTriac.Ron,idealTriac.Vknee,idealTriac.capacitor.C,idealTriac.capacitor.i,idealTriac.capacitor.n.i,idealTriac.capacitor.n.v,idealTriac.capacitor.p.i,idealTriac.capacitor.p.v,idealTriac.capacitor.v,idealTriac.fire1,idealTriac.idealThyristor.Goff,idealTriac.idealThyristor.LossPower,idealTriac.idealThyristor.Ron,idealTriac.idealThyristor.T,idealTriac.idealThyristor.T_heatPort,idealTriac.idealThyristor.Vknee,idealTriac.idealThyristor.fire,idealTriac.idealThyristor.i,idealTriac.idealThyristor.n.i,idealTriac.idealThyristor.n.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor.p.i,idealTriac.idealThyristor.p.v,idealTriac.idealThyristor.s,idealTriac.idealThyristor.useHeatPort,idealTriac.idealThyristor.v,idealTriac.idealThyristor1.Goff,idealTriac.idealThyristor1.LossPower,idealTriac.idealThyristor1.Ron,idealTriac.idealThyristor1.T,idealTriac.idealThyristor1.T_heatPort,idealTriac.idealThyristor1.Vknee,idealTriac.idealThyristor1.fire,idealTriac.idealThyristor1.i,idealTriac.idealThyristor1.n.i,idealTriac.idealThyristor1.n.v,idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.p.i,idealTriac.idealThyristor1.p.v,idealTriac.idealThyristor1.s,idealTriac.idealThyristor1.useHeatPort,idealTriac.idealThyristor1.v,idealTriac.n.i,idealTriac.n.v,idealTriac.p.i,idealTriac.p.v,idealTriac.resistor.LossPower,idealTriac.resistor.R,idealTriac.resistor.R_actual,idealTriac.resistor.T,idealTriac.resistor.T_heatPort,idealTriac.resistor.T_ref,idealTriac.resistor.alpha,idealTriac.resistor.i,idealTriac.resistor.n.i,idealTriac.resistor.n.v,idealTriac.resistor.p.i,idealTriac.resistor.p.v,idealTriac.resistor.useHeatPort,idealTriac.resistor.v,time