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.001541/0.001541, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001773/0.001773, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.378/1.378, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.001475/0.001475, allocations: 43.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1053, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004301/0.1096, allocations: 2.933 MB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.1109, allocations: 0.7361 MB / 421.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.111, allocations: 4 kB / 421.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1112, allocations: 47.5 kB / 421.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.1114, allocations: 107.1 kB / 421.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.1117, allocations: 99.83 kB / 421.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.1121, allocations: 402.3 kB / 422.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1123, allocations: 95.27 kB / 422.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.1125, allocations: 155.4 kB / 422.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1127, allocations: 163.3 kB / 422.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.551e-05/0.1128, allocations: 36 kB / 422.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.422e-05/0.1129, allocations: 36 kB / 422.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-05/0.1129, allocations: 71.77 kB / 422.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.1131, allocations: 191.1 kB / 422.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.1136, allocations: 430.3 kB / 423.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1136, allocations: 3.984 kB / 423.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1136, allocations: 0 / 423.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.1136, allocations: 0 / 423.3 MB, free: 7.109 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.001077/0.1146, allocations: 0.6243 MB / 423.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1147, allocations: 8.031 kB / 423.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.434e-05/0.1148, allocations: 62.72 kB / 424 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.893e-05/0.1148, allocations: 32.75 kB / 424 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.1153, allocations: 295.7 kB / 424.3 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.1153, allocations: 20.94 kB / 424.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.1153, allocations: 24.38 kB / 424.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.1158, allocations: 288.7 kB / 424.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1159, allocations: 0 / 424.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.1159, allocations: 12 kB / 424.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.1159, allocations: 11.98 kB / 424.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003959/0.1163, allocations: 206 kB / 424.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.118, allocations: 1.156 MB / 426 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.1185, allocations: 198.6 kB / 426.2 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.1188, allocations: 124.8 kB / 426.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.1188, allocations: 4 kB / 426.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.1191, allocations: 170.7 kB / 426.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.1191, allocations: 0 / 426.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001391/0.1205, allocations: 0.5089 MB / 427 MB, free: 3.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.1206, allocations: 132.5 kB / 427.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.1209, allocations: 241 kB / 427.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.1209, allocations: 29.7 kB / 427.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1211, allocations: 172.6 kB / 427.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.875e-05/0.1211, allocations: 83.34 kB / 427.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.092e-05/0.1212, allocations: 49.69 kB / 427.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1214, allocations: 330.8 kB / 428 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.1215, allocations: 79.91 kB / 428.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.1217, allocations: 121.1 kB / 428.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.122, allocations: 180 kB / 428.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.122, allocations: 0 / 428.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005067/0.1225, allocations: 282.2 kB / 428.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1226, allocations: 4 kB / 428.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.1226, allocations: 8.094 kB / 428.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003598/0.1229, allocations: 92.73 kB / 428.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1231, allocations: 31.92 kB / 428.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002674/0.1257, allocations: 2.143 MB / 430.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.126, allocations: 35.95 kB / 430.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.126, allocations: 8 kB / 431 MB, free: 14.91 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.0001892/0.1262, allocations: 154.4 kB / 431.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.664e-05/0.1262, allocations: 27.8 kB / 431.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.161e-05/0.1263, allocations: 30.17 kB / 431.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1263, allocations: 4 kB / 431.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1263, allocations: 4 kB / 431.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1263, allocations: 4 kB / 431.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1273, allocations: 0.7743 MB / 431.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1273, allocations: 0 / 431.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1275, allocations: 19.98 kB / 432 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/0.1277, allocations: 80.81 kB / 432 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.1277, allocations: 16.02 kB / 432.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.13, allocations: 2.139 MB / 434.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.13, allocations: 3.938 kB / 434.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006708/0.1307, allocations: 454.9 kB / 434.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.1308, allocations: 128.9 kB / 434.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.1309, allocations: 4 kB / 434.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.1311, allocations: 15.98 kB / 434.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.1312, allocations: 36.05 kB / 434.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1312, allocations: 11.92 kB / 434.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.1313, allocations: 180.5 kB / 435 MB, free: 10.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1313, allocations: 0 / 435 MB, free: 10.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004262/0.1318, allocations: 91.89 kB / 435.1 MB, free: 10.51 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.001016/0.1328, allocations: 0.9847 MB / 436.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006762/0.1335, allocations: 350.3 kB / 436.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1335, allocations: 0 / 436.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003974/0.1339, allocations: 254.8 kB / 436.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1343, allocations: 56.73 kB / 436.7 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.1378, allocations: 2.785 MB / 439.5 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.1382, allocations: 0.7597 MB / 440.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.687e-05/0.1383, allocations: 22.28 kB / 440.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1384, allocations: 79.41 kB / 440.4 MB, free: 5.043 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1384, allocations: 4 kB / 440.4 MB, free: 5.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/0.3555, allocations: 7.609 MB / 448 MB, free: 30.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.76, allocations: 10.11 kB / 448 MB, free: 30.82 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.301144080702215]