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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 124.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 198.8 kB / 20.73 MB, free: 2.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.6 MB / 249.1 MB, free: 3.586 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 55.91 kB / 365.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1006, allocations: 52.13 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004208/0.1048, allocations: 2.947 MB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1061, allocations: 0.7245 MB / 421.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1062, allocations: 11.94 kB / 421.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.1064, allocations: 47.5 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1066, allocations: 99.12 kB / 421.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1068, allocations: 107.8 kB / 421.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004298/0.1073, allocations: 402.3 kB / 422.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1075, allocations: 99.27 kB / 422.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1077, allocations: 151.5 kB / 422.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.1079, allocations: 171.2 kB / 422.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.1079, allocations: 36 kB / 422.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.166e-05/0.108, allocations: 36 kB / 422.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.1081, allocations: 71.77 kB / 422.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.1082, allocations: 179.1 kB / 422.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004642/0.1087, allocations: 434.3 kB / 423.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1087, allocations: 0 / 423.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1087, allocations: 0 / 423.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1087, allocations: 0 / 423.3 MB, free: 7.074 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.001082/0.1098, allocations: 0.6321 MB / 423.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1098, allocations: 8.031 kB / 423.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.255e-05/0.1099, allocations: 62.72 kB / 424 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.12e-05/0.11, allocations: 36.75 kB / 424 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1104, allocations: 295.7 kB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.1104, allocations: 16.94 kB / 424.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.1105, allocations: 24.38 kB / 424.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.111, allocations: 284.7 kB / 424.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.111, allocations: 0 / 424.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.111, allocations: 19.98 kB / 424.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.111, allocations: 7.938 kB / 424.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004108/0.1114, allocations: 210.1 kB / 424.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1132, allocations: 1.144 MB / 426 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.1137, allocations: 198.7 kB / 426.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.114, allocations: 128.7 kB / 426.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.114, allocations: 4 kB / 426.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.1143, allocations: 166.7 kB / 426.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.1143, allocations: 4 kB / 426.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001413/0.1157, allocations: 0.5048 MB / 427 MB, free: 3.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.198e-05/0.1158, allocations: 136.5 kB / 427.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.116, allocations: 237 kB / 427.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.116, allocations: 33.7 kB / 427.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.1162, allocations: 176.6 kB / 427.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/0.1162, allocations: 71.39 kB / 427.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.1163, allocations: 49.64 kB / 427.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1165, allocations: 338.8 kB / 428 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.1166, allocations: 75.97 kB / 428.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1168, allocations: 129 kB / 428.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.1171, allocations: 172 kB / 428.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1171, allocations: 3.984 kB / 428.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005078/0.1177, allocations: 282.2 kB / 428.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1177, allocations: 4 kB / 428.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1177, allocations: 4 kB / 428.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.118, allocations: 96.72 kB / 428.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.1182, allocations: 36.02 kB / 428.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.1206, allocations: 2.139 MB / 430.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1209, allocations: 31.89 kB / 431 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1209, allocations: 8 kB / 431 MB, free: 14.88 MB / 366.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.0001758/0.1211, allocations: 158.5 kB / 431.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.373e-05/0.1211, allocations: 27.8 kB / 431.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.797e-05/0.1212, allocations: 34.17 kB / 431.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1212, allocations: 4 kB / 431.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.1212, allocations: 0 / 431.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1212, allocations: 112 / 431.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009955/0.1222, allocations: 0.7742 MB / 432 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1222, allocations: 0 / 432 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1223, allocations: 19.98 kB / 432 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002629/0.1226, allocations: 84.75 kB / 432.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1226, allocations: 11.98 kB / 432.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/0.125, allocations: 2.154 MB / 434.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.125, allocations: 0 / 434.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006993/0.1257, allocations: 450.9 kB / 434.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.1258, allocations: 124.8 kB / 434.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.1258, allocations: 8 kB / 434.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.126, allocations: 16.11 kB / 434.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.1261, allocations: 35.95 kB / 434.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.1261, allocations: 8.078 kB / 434.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001881/0.1263, allocations: 180.4 kB / 435 MB, free: 10.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1263, allocations: 0 / 435 MB, free: 10.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.1268, allocations: 91.89 kB / 435.1 MB, free: 10.47 MB / 366.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.001074/0.1279, allocations: 0.9864 MB / 436.1 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007453/0.1286, allocations: 354.3 kB / 436.4 MB, free: 9.094 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1286, allocations: 0 / 436.4 MB, free: 9.094 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.129, allocations: 246.5 kB / 436.7 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.1294, allocations: 60.66 kB / 436.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.1332, allocations: 2.777 MB / 439.5 MB, free: 5.898 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.1336, allocations: 0.7636 MB / 440.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1337, allocations: 26.28 kB / 440.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1338, allocations: 79.41 kB / 440.4 MB, free: 5 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.1338, allocations: 0 / 440.4 MB, free: 5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2097/0.3436, allocations: 7.608 MB / 448 MB, free: 30.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.63, allocations: 8.422 kB / 448 MB, free: 30.83 MB / 366.1 MB " [Timeout remaining time 647] (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.00039604 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.273597388993949]