Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001569, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.00192/0.00192, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 47.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2664, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005196/0.2716, allocations: 4.048 MB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.2736, allocations: 1.013 MB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004343/0.2741, allocations: 8 kB / 405.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003023/0.2744, allocations: 87.12 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005191/0.275, allocations: 178.4 kB / 405.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.2756, allocations: 219.7 kB / 405.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009002/0.2765, allocations: 0.8095 MB / 406.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.2768, allocations: 170.6 kB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004433/0.2773, allocations: 306.9 kB / 407.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004674/0.2777, allocations: 362.7 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.2779, allocations: 80 kB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.278, allocations: 80 kB / 407.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.2782, allocations: 163.4 kB / 407.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003388/0.2785, allocations: 330.6 kB / 408.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007443/0.2793, allocations: 0.845 MB / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2793, allocations: 0 / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2793, allocations: 0 / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.477e-05/0.2793, allocations: 0 / 408.9 MB, free: 112 kB / 318.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.002828/0.2822, allocations: 1.019 MB / 409.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.2822, allocations: 8.031 kB / 409.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.2823, allocations: 78.72 kB / 410 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.2825, allocations: 68.12 kB / 410.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000616/0.2831, allocations: 410 kB / 410.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.2831, allocations: 33.36 kB / 410.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.2832, allocations: 36.38 kB / 410.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.2848, allocations: 0.5991 MB / 411.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2848, allocations: 0 / 411.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.156e-05/0.2849, allocations: 16 kB / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2849, allocations: 8 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.2868, allocations: 0.6284 MB / 411.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003912/0.2907, allocations: 2.153 MB / 413.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003745/0.2945, allocations: 0.8332 MB / 414.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.2955, allocations: 393.2 kB / 415.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.2956, allocations: 8.312 kB / 415.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/0.2967, allocations: 426.6 kB / 415.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.766e-06/0.2968, allocations: 4 kB / 415.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01347/0.3102, allocations: 2.282 MB / 417.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.3103, allocations: 81.11 kB / 418 MB, free: 6.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005347/0.3109, allocations: 410 kB / 418.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.837e-05/0.311, allocations: 33.7 kB / 418.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.3112, allocations: 240.6 kB / 418.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3113, allocations: 126.1 kB / 418.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.3115, allocations: 81.95 kB / 418.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3117, allocations: 354.7 kB / 419.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009574/0.3127, allocations: 288.6 kB / 419.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009501/0.3136, allocations: 334.1 kB / 419.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.3154, allocations: 0.5834 MB / 420.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3154, allocations: 0 / 420.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003478/0.3189, allocations: 0.9821 MB / 421.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.561e-05/0.319, allocations: 29.7 kB / 421.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.319, allocations: 0 / 421.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.3202, allocations: 396.5 kB / 421.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.3207, allocations: 95.91 kB / 421.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008106/0.3288, allocations: 3.664 MB / 425.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/0.3295, allocations: 91.64 kB / 425.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.675e-05/0.3296, allocations: 16 kB / 425.6 MB, free: 14.85 MB / 350.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.0002608/0.3298, allocations: 173.8 kB / 425.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.484e-05/0.3299, allocations: 47.42 kB / 425.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.3301, allocations: 56.47 kB / 425.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.3301, allocations: 4 kB / 425.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.3301, allocations: 3.938 kB / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3301, allocations: 3.984 kB / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006815/0.3308, allocations: 0.6107 MB / 426.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3308, allocations: 0 / 426.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.3313, allocations: 83.91 kB / 426.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.3324, allocations: 400.5 kB / 427 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.3324, allocations: 7.938 kB / 427 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007941/0.3404, allocations: 3.664 MB / 430.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3404, allocations: 4 kB / 430.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005543/0.3459, allocations: 1.449 MB / 432.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.3462, allocations: 180.5 kB / 432.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.125e-05/0.3463, allocations: 11.94 kB / 432.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.3469, allocations: 71.91 kB / 432.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3471, allocations: 47.94 kB / 432.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.3471, allocations: 15.98 kB / 432.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003277/0.3475, allocations: 291.2 kB / 432.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3475, allocations: 0 / 432.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006329/0.3481, allocations: 175.8 kB / 432.9 MB, free: 7.34 MB / 350.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.005916/0.354, allocations: 2.018 MB / 434.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.3566, allocations: 0.919 MB / 435.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3566, allocations: 0 / 435.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001514/0.3582, allocations: 0.5568 MB / 436.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.3587, allocations: 97.59 kB / 436.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.3731, allocations: 5.798 MB / 442.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3735, allocations: 0.8317 MB / 443.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002436/0.3738, allocations: 51.38 kB / 443.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.3741, allocations: 163.4 kB / 443.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3741, allocations: 0 / 443.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0482/0.4223, allocations: 18.3 MB / 461.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.4, allocations: 6.688 kB / 461.6 MB, free: 10.64 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv","/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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches