Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.001483/0.001483, allocations: 112.4 kB / 17.06 MB, free: 5.809 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.001682/0.001682, allocations: 200 kB / 18 MB, free: 4.949 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.288/1.288, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009686/0.0009687, allocations: 47.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2775, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00424/0.2818, allocations: 2.931 MB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.283, allocations: 0.7206 MB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.2832, allocations: 4 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.2833, allocations: 51.5 kB / 403.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.2835, allocations: 99.11 kB / 404 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.2838, allocations: 99.83 kB / 404.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004096/0.2842, allocations: 406.3 kB / 404.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.2845, allocations: 131.2 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.2847, allocations: 159.4 kB / 404.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.2849, allocations: 155.4 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.115e-05/0.285, allocations: 36 kB / 405 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.02e-05/0.285, allocations: 36 kB / 405 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.2851, allocations: 75.77 kB / 405.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.2853, allocations: 187.1 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.2857, allocations: 432.2 kB / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2858, allocations: 0 / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2858, allocations: 0 / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.2858, allocations: 0 / 405.7 MB, free: 3.281 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.001083/0.2869, allocations: 0.6198 MB / 406.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2869, allocations: 8.031 kB / 406.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/0.287, allocations: 62.72 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/0.2871, allocations: 40.47 kB / 406.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.2875, allocations: 279.7 kB / 406.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.2875, allocations: 16.94 kB / 406.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.2876, allocations: 28.38 kB / 406.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.2882, allocations: 288.7 kB / 407 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2882, allocations: 0 / 407 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.2883, allocations: 12 kB / 407.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2883, allocations: 8 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004023/0.2887, allocations: 202.1 kB / 407.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.2905, allocations: 1.16 MB / 408.4 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.291, allocations: 214.6 kB / 408.6 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.2913, allocations: 140.8 kB / 408.8 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.2914, allocations: 0 / 408.8 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/0.2917, allocations: 176 kB / 408.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.2917, allocations: 0 / 408.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001402/0.2931, allocations: 0.5166 MB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.74e-05/0.2932, allocations: 136.5 kB / 409.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.2935, allocations: 241 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.2935, allocations: 25.7 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.2936, allocations: 176.4 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.2937, allocations: 74.92 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/0.2938, allocations: 53.7 kB / 410.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.294, allocations: 326.8 kB / 410.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.2941, allocations: 75.91 kB / 410.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.2943, allocations: 129.1 kB / 410.7 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.2946, allocations: 175.3 kB / 410.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2947, allocations: 0 / 410.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005349/0.2952, allocations: 290 kB / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2952, allocations: 8.094 kB / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.2953, allocations: 8 kB / 411.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004227/0.2957, allocations: 88.8 kB / 411.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.2958, allocations: 31.92 kB / 411.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.2983, allocations: 2.15 MB / 413.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.2986, allocations: 31.77 kB / 413.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.2986, allocations: 8 kB / 413.4 MB, free: 11.05 MB / 334.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.0002079/0.2988, allocations: 150.4 kB / 413.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.682e-05/0.2988, allocations: 27.66 kB / 413.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.2989, allocations: 34.17 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.2989, allocations: 8.062 kB / 413.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2989, allocations: 0 / 413.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2989, allocations: 0 / 413.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3, allocations: 0.7757 MB / 414.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3, allocations: 0 / 414.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.3001, allocations: 19.98 kB / 414.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002538/0.3004, allocations: 84.84 kB / 414.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3004, allocations: 7.984 kB / 414.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002202/0.3026, allocations: 2.145 MB / 416.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3026, allocations: 0 / 416.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.3033, allocations: 465.4 kB / 417.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3035, allocations: 124.8 kB / 417.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.3035, allocations: 7.984 kB / 417.3 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.3037, allocations: 19.98 kB / 417.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3038, allocations: 27.95 kB / 417.3 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.3039, allocations: 8.062 kB / 417.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.304, allocations: 180.5 kB / 417.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.304, allocations: 0 / 417.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.3045, allocations: 87.84 kB / 417.6 MB, free: 6.656 MB / 334.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.0009348/0.3054, allocations: 0.9938 MB / 418.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000659/0.3061, allocations: 358.4 kB / 418.9 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3061, allocations: 0 / 418.9 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003879/0.3065, allocations: 274.7 kB / 419.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.3069, allocations: 60.72 kB / 419.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.3103, allocations: 2.755 MB / 422 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3106, allocations: 0.7636 MB / 422.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.3107, allocations: 18.28 kB / 422.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.3108, allocations: 83.41 kB / 422.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3108, allocations: 4 kB / 422.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3395, allocations: 7.561 MB / 430.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.63, allocations: 7.875 kB / 430.4 MB, free: 9.809 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches