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.0009967/0.0009967, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001049/0.00105, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2823, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003925/0.2862, allocations: 2.927 MB / 403.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2874, allocations: 0.7245 MB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2876, allocations: 7.938 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.2878, allocations: 47.5 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.2879, allocations: 107.1 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.2882, allocations: 103.8 kB / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.2887, allocations: 402.3 kB / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2889, allocations: 123.3 kB / 404.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2891, allocations: 163.4 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.2894, allocations: 159.4 kB / 405 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.2894, allocations: 39.98 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.509e-05/0.2895, allocations: 36 kB / 405.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.2895, allocations: 75.7 kB / 405.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2897, allocations: 175.2 kB / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004328/0.2902, allocations: 433.3 kB / 405.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2902, allocations: 4 kB / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2902, allocations: 0 / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.2902, allocations: 0 / 405.7 MB, free: 3.32 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.0009688/0.2912, allocations: 0.636 MB / 406.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2912, allocations: 11.97 kB / 406.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.172e-05/0.2913, allocations: 58.73 kB / 406.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/0.2914, allocations: 32.75 kB / 406.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.2918, allocations: 283.8 kB / 406.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.2918, allocations: 16.94 kB / 406.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.2919, allocations: 24.38 kB / 406.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.2924, allocations: 296.6 kB / 407.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2924, allocations: 3.984 kB / 407.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.2925, allocations: 12 kB / 407.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2925, allocations: 8 kB / 407.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.2929, allocations: 206.1 kB / 407.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.2946, allocations: 1.141 MB / 408.4 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005141/0.2952, allocations: 222.6 kB / 408.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.2955, allocations: 140.8 kB / 408.8 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.2955, allocations: 0 / 408.8 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000316/0.2959, allocations: 183.9 kB / 409 MB, free: 15.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.2959, allocations: 0 / 409 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001361/0.2972, allocations: 0.5172 MB / 409.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/0.2973, allocations: 136.5 kB / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.2976, allocations: 241 kB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.2976, allocations: 29.7 kB / 409.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.2977, allocations: 168.6 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.474e-05/0.2978, allocations: 79.31 kB / 410.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.16e-05/0.2979, allocations: 45.7 kB / 410.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.298, allocations: 342.8 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2982, allocations: 71.91 kB / 410.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.2984, allocations: 129.1 kB / 410.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.2987, allocations: 171.3 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2987, allocations: 0 / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004638/0.2991, allocations: 290.2 kB / 411.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2992, allocations: 11.92 kB / 411.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2992, allocations: 0 / 411.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/0.2995, allocations: 92.89 kB / 411.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.2997, allocations: 31.98 kB / 411.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.302, allocations: 2.146 MB / 413.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3023, allocations: 31.97 kB / 413.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3023, allocations: 12 kB / 413.5 MB, free: 11.07 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.0001454/0.3024, allocations: 146.5 kB / 413.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.3025, allocations: 31.78 kB / 413.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.3025, allocations: 26.19 kB / 413.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.3026, allocations: 4 kB / 413.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3026, allocations: 0 / 413.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3026, allocations: 3.984 kB / 413.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008978/0.3035, allocations: 0.7718 MB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3035, allocations: 4 kB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.3036, allocations: 19.92 kB / 414.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.3039, allocations: 88.8 kB / 414.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3039, allocations: 4 kB / 414.6 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/0.306, allocations: 2.158 MB / 416.7 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3061, allocations: 4.031 kB / 416.7 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.3067, allocations: 449.6 kB / 417.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.3068, allocations: 128.9 kB / 417.3 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.3069, allocations: 8 kB / 417.3 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.3071, allocations: 15.98 kB / 417.3 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.3072, allocations: 39.89 kB / 417.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.3072, allocations: 4 kB / 417.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.3074, allocations: 176.5 kB / 417.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3074, allocations: 96 / 417.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004365/0.3078, allocations: 99.83 kB / 417.6 MB, free: 6.66 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.0009762/0.3088, allocations: 0.9928 MB / 418.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006669/0.3095, allocations: 362.4 kB / 419 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3095, allocations: 0 / 419 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003733/0.3099, allocations: 266.5 kB / 419.2 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.3103, allocations: 64.97 kB / 419.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.3135, allocations: 2.757 MB / 422.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.3138, allocations: 0.7713 MB / 422.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.201e-05/0.3139, allocations: 26.28 kB / 422.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.314, allocations: 79.41 kB / 422.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of SimCode: time 1.913e-06/0.314, allocations: 0 / 422.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.3429, allocations: 7.567 MB / 430.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.3, allocations: 4.062 kB / 430.5 MB, free: 9.801 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