Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 123.4 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1095, allocations: 53.33 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004278/0.1138, allocations: 2.958 MB / 429.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1153, allocations: 0.7985 MB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1154, allocations: 7.938 kB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.1156, allocations: 47.5 kB / 430.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1158, allocations: 99.12 kB / 430.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.1161, allocations: 123.7 kB / 430.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004438/0.1166, allocations: 402.3 kB / 430.7 MB, free: 332 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.1168, allocations: 95.22 kB / 430.8 MB, free: 228 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.117, allocations: 167.4 kB / 431 MB, free: 60 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2051/0.3221, allocations: 155.8 kB / 431.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.3222, allocations: 36.56 kB / 431.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.3224, allocations: 43.22 kB / 431.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-05/0.3225, allocations: 70.92 kB / 431.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.3227, allocations: 177.5 kB / 431.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005312/0.3232, allocations: 445.1 kB / 431.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3232, allocations: 0.9688 kB / 431.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3232, allocations: 0 / 431.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3232, allocations: 1.219 kB / 431.9 MB, free: 7.754 MB / 350.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.0009121/0.3241, allocations: 0.6304 MB / 432.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3242, allocations: 9.219 kB / 432.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.232e-05/0.3242, allocations: 58.61 kB / 432.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.3244, allocations: 49.42 kB / 432.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.3248, allocations: 293.4 kB / 432.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.3248, allocations: 18.47 kB / 433 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.3248, allocations: 23.91 kB / 433 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.3253, allocations: 297.2 kB / 433.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3253, allocations: 0 / 433.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.3253, allocations: 20.89 kB / 433.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3254, allocations: 8.062 kB / 433.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003456/0.3257, allocations: 201.5 kB / 433.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3271, allocations: 1.144 MB / 434.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004534/0.3275, allocations: 200.3 kB / 434.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.3278, allocations: 127.2 kB / 435 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.3278, allocations: 3.516 kB / 435 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.328, allocations: 169.1 kB / 435.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.044e-06/0.3281, allocations: 3.234 kB / 435.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001325/0.3294, allocations: 0.5111 MB / 435.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3294, allocations: 133 kB / 435.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.3296, allocations: 246 kB / 436 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3297, allocations: 32.11 kB / 436 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.3297, allocations: 177.6 kB / 436.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.3298, allocations: 72.83 kB / 436.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.09e-05/0.3299, allocations: 51.28 kB / 436.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.3299, allocations: 334.7 kB / 436.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3301, allocations: 71.72 kB / 436.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.3303, allocations: 129.1 kB / 436.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.3305, allocations: 169.7 kB / 437 MB, free: 5.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3305, allocations: 0 / 437 MB, free: 5.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004513/0.331, allocations: 292.1 kB / 437.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.331, allocations: 9.531 kB / 437.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.331, allocations: 1.094 kB / 437.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003218/0.3313, allocations: 92.19 kB / 437.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.3314, allocations: 30.36 kB / 437.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.3333, allocations: 2.137 MB / 439.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.3335, allocations: 30.28 kB / 439.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.3335, allocations: 13.17 kB / 439.6 MB, free: 3.316 MB / 350.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.0001231/0.3336, allocations: 142.9 kB / 439.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.3337, allocations: 28.22 kB / 439.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.3337, allocations: 32.19 kB / 439.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3337, allocations: 6.219 kB / 439.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3337, allocations: 1.203 kB / 439.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3337, allocations: 6.047 kB / 439.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008013/0.3345, allocations: 0.7693 MB / 440.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.3345, allocations: 4.531 kB / 440.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.3346, allocations: 17.77 kB / 440.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/0.3349, allocations: 95.5 kB / 440.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.3349, allocations: 7.484 kB / 440.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.3366, allocations: 2.143 MB / 442.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3366, allocations: 3.984 kB / 442.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.3372, allocations: 446.6 kB / 443.3 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.096e-05/0.3373, allocations: 134.4 kB / 443.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.3373, allocations: 2.812 kB / 443.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3375, allocations: 19.77 kB / 443.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.818e-05/0.3376, allocations: 33.03 kB / 443.5 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.3376, allocations: 10.36 kB / 443.5 MB, free: 264 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001503/0.3378, allocations: 182.4 kB / 443.7 MB, free: 156 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3378, allocations: 0 / 443.7 MB, free: 156 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.3382, allocations: 88.92 kB / 443.8 MB, free: 140 kB / 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.001003/0.3392, allocations: 0.9889 MB / 444.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006824/0.3399, allocations: 349.2 kB / 445.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3399, allocations: 0 / 445.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004505/0.3404, allocations: 252.6 kB / 445.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.3408, allocations: 59.28 kB / 445.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.3446, allocations: 2.777 MB / 448.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.345, allocations: 0.7717 MB / 449 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.3451, allocations: 20.2 kB / 449 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.3453, allocations: 82.91 kB / 449.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3453, allocations: 4 kB / 449.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04/0.3853, allocations: 7.64 MB / 456.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.03, allocations: 3.781 kB / 456.7 MB, free: 10.66 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00039604 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.655742287999601]