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.001576/0.001576, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001589/0.001589, allocations: 190.6 kB / 21.43 MB, free: 1.641 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.421/1.421, allocations: 225.6 MB / 249.8 MB, free: 3.605 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 47.92 kB / 366.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1058, allocations: 52.13 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004778/0.1106, allocations: 2.935 MB / 421.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.1122, allocations: 0.7361 MB / 422.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.1125, allocations: 4 kB / 422.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.1127, allocations: 51.5 kB / 422.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.113, allocations: 107.1 kB / 422.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.1133, allocations: 95.81 kB / 422.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005641/0.1139, allocations: 410.3 kB / 422.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.1141, allocations: 83.28 kB / 422.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.1144, allocations: 163.4 kB / 423.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/0.1146, allocations: 159.3 kB / 423.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.428e-05/0.1147, allocations: 47.98 kB / 423.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.036e-05/0.1148, allocations: 36 kB / 423.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.1149, allocations: 79.7 kB / 423.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.1151, allocations: 171.2 kB / 423.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.1156, allocations: 438.3 kB / 424 MB, free: 7.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1156, allocations: 0 / 424 MB, free: 7.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1156, allocations: 0 / 424 MB, free: 7.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.1156, allocations: 0 / 424 MB, free: 7.102 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.001205/0.1168, allocations: 0.6243 MB / 424.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1168, allocations: 15.97 kB / 424.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.633e-05/0.1168, allocations: 4.75 kB / 424.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.819e-05/0.1169, allocations: 58.73 kB / 424.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.117, allocations: 36.75 kB / 424.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.1174, allocations: 291.8 kB / 425 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.1174, allocations: 16.94 kB / 425 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.1175, allocations: 28.36 kB / 425 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.118, allocations: 292.4 kB / 425.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.118, allocations: 0 / 425.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.1181, allocations: 15.94 kB / 425.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1181, allocations: 12 kB / 425.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004311/0.1185, allocations: 206.1 kB / 425.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.1204, allocations: 1.148 MB / 426.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.1209, allocations: 198.7 kB / 426.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.1212, allocations: 124.8 kB / 427 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.1212, allocations: 4 kB / 427 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.1215, allocations: 166.6 kB / 427.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.1215, allocations: 3.938 kB / 427.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001517/0.123, allocations: 0.5089 MB / 427.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1231, allocations: 140.5 kB / 427.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.1234, allocations: 241 kB / 428.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.1234, allocations: 29.7 kB / 428.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1236, allocations: 172.6 kB / 428.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.1237, allocations: 75.38 kB / 428.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/0.1238, allocations: 49.7 kB / 428.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1239, allocations: 330.8 kB / 428.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.1241, allocations: 75.97 kB / 428.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1243, allocations: 129.1 kB / 428.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.1246, allocations: 172 kB / 429.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1246, allocations: 4.031 kB / 429.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005342/0.1251, allocations: 290.1 kB / 429.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1251, allocations: 8 kB / 429.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1252, allocations: 0 / 429.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.1255, allocations: 96.73 kB / 429.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.1256, allocations: 23.98 kB / 429.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.1283, allocations: 2.143 MB / 431.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.1285, allocations: 31.91 kB / 431.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1285, allocations: 8 kB / 431.7 MB, free: 14.9 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.000187/0.1287, allocations: 158.5 kB / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.1287, allocations: 27.8 kB / 431.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.1288, allocations: 30.19 kB / 431.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1288, allocations: 0 / 431.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.1288, allocations: 112 / 431.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1288, allocations: 11.92 kB / 431.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.1299, allocations: 0.7625 MB / 432.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1299, allocations: 4.031 kB / 432.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.13, allocations: 23.92 kB / 432.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002801/0.1303, allocations: 92.73 kB / 432.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.1303, allocations: 4 kB / 432.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.1329, allocations: 2.151 MB / 434.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1329, allocations: 3.938 kB / 434.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007146/0.1336, allocations: 455.1 kB / 435.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.1337, allocations: 124.9 kB / 435.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.1337, allocations: 8 kB / 435.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.134, allocations: 20.11 kB / 435.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1341, allocations: 39.89 kB / 435.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.1341, allocations: 4 kB / 435.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.1343, allocations: 176.5 kB / 435.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1343, allocations: 0 / 435.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004699/0.1347, allocations: 91.89 kB / 435.8 MB, free: 10.48 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.001107/0.1358, allocations: 0.9865 MB / 436.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007597/0.1366, allocations: 354.3 kB / 437.2 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1366, allocations: 0 / 437.2 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004381/0.137, allocations: 250.5 kB / 437.4 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.1374, allocations: 56.59 kB / 437.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.1415, allocations: 2.768 MB / 440.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.1419, allocations: 0.7675 MB / 441 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.953e-05/0.142, allocations: 22.28 kB / 441 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.1421, allocations: 87.34 kB / 441.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1421, allocations: 0 / 441.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.212/0.3541, allocations: 7.642 MB / 448.7 MB, free: 30.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.99, allocations: 8.453 kB / 448.8 MB, free: 30.9 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.581613135989755]