Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001554/0.001554, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2682, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004311/0.2726, allocations: 2.948 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.274, allocations: 0.7946 MB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2742, allocations: 4 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.2744, allocations: 47.5 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.2746, allocations: 99.11 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.2749, allocations: 111.8 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.2753, allocations: 426.2 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.2756, allocations: 131.2 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.2758, allocations: 147.5 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.2761, allocations: 167.2 kB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/0.2761, allocations: 36 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.539e-05/0.2762, allocations: 44 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.493e-05/0.2763, allocations: 75.75 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.2765, allocations: 183.1 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.277, allocations: 441.3 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.277, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.277, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.277, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.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.001165/0.2782, allocations: 0.6243 MB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.2782, allocations: 8.031 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.167e-05/0.2783, allocations: 66.72 kB / 415.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.2785, allocations: 48.69 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00048/0.279, allocations: 292.9 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2791, allocations: 16.94 kB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.2791, allocations: 32.36 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/0.2796, allocations: 284.7 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2797, allocations: 8 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.2797, allocations: 8 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.2797, allocations: 8 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.2801, allocations: 206.1 kB / 416 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.2819, allocations: 1.148 MB / 417.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.2824, allocations: 222.2 kB / 417.3 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.2827, allocations: 144.4 kB / 417.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2828, allocations: 4 kB / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003018/0.2831, allocations: 166.7 kB / 417.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.2831, allocations: 3.938 kB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001434/0.2845, allocations: 0.5147 MB / 418.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/0.2846, allocations: 132.5 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.2849, allocations: 245 kB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/0.285, allocations: 33.7 kB / 418.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.2851, allocations: 164.7 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.2852, allocations: 75.41 kB / 418.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.075e-05/0.2853, allocations: 49.66 kB / 418.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.2855, allocations: 334.8 kB / 419.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.2856, allocations: 75.97 kB / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.2858, allocations: 129 kB / 419.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.2862, allocations: 171.3 kB / 419.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2862, allocations: 0 / 419.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005272/0.2867, allocations: 294.1 kB / 419.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.868e-05/0.2867, allocations: 7.984 kB / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2867, allocations: 0 / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.2871, allocations: 88.8 kB / 419.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.2872, allocations: 36.02 kB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.2898, allocations: 2.135 MB / 422.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.29, allocations: 39.77 kB / 422.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.2901, allocations: 8.109 kB / 422.1 MB, free: 3.633 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.0001723/0.2902, allocations: 157.8 kB / 422.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.2903, allocations: 35.78 kB / 422.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.343e-05/0.2904, allocations: 26.19 kB / 422.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2904, allocations: 4 kB / 422.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.2904, allocations: 0 / 422.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2904, allocations: 3.984 kB / 422.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2914, allocations: 0.7661 MB / 423.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2914, allocations: 4 kB / 423.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.2915, allocations: 15.98 kB / 423.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/0.2918, allocations: 92.8 kB / 423.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.2918, allocations: 0 / 423.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002395/0.2942, allocations: 2.151 MB / 425.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.2942, allocations: 7.969 kB / 425.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.295, allocations: 457 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.2952, allocations: 124.9 kB / 425.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.2952, allocations: 12.12 kB / 426 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.2954, allocations: 19.98 kB / 426 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2955, allocations: 31.95 kB / 426 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.2955, allocations: 4 kB / 426 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.2957, allocations: 180.5 kB / 426.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2957, allocations: 0 / 426.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004573/0.2962, allocations: 87.89 kB / 426.3 MB, free: 15.23 MB / 350.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.001089/0.2973, allocations: 0.9912 MB / 427.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007417/0.2981, allocations: 370.5 kB / 427.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2981, allocations: 0 / 427.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.2985, allocations: 265.5 kB / 427.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.2989, allocations: 52.66 kB / 427.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.3027, allocations: 2.801 MB / 430.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.3032, allocations: 0.76 MB / 431.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.819e-05/0.3033, allocations: 26.28 kB / 431.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.3034, allocations: 87.39 kB / 431.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3034, allocations: 0 / 431.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03859/0.342, allocations: 7.59 MB / 439.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.97, allocations: 0.8906 kB / 439.2 MB, free: 2.297 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches