Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001496/0.001496, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.002048/0.002048, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 59.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3167, allocations: 49.16 MB / 396.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004975/0.3217, allocations: 2.905 MB / 399.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3231, allocations: 0.7809 MB / 400 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.3233, allocations: 5.188 kB / 400 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.3235, allocations: 46.72 kB / 400.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002413/0.3237, allocations: 104.3 kB / 400.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.3241, allocations: 111.5 kB / 400.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.3247, allocations: 406.7 kB / 400.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.3249, allocations: 105 kB / 400.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.3252, allocations: 156.8 kB / 401 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.3255, allocations: 163.3 kB / 401.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.275e-05/0.3256, allocations: 36.91 kB / 401.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.563e-05/0.3257, allocations: 37.12 kB / 401.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.555e-05/0.3258, allocations: 80.5 kB / 401.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.3259, allocations: 172.2 kB / 401.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.3266, allocations: 437 kB / 401.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3266, allocations: 0.7969 kB / 401.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3266, allocations: 3.938 kB / 401.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3266, allocations: 1.25 kB / 401.9 MB, free: 5.418 MB / 318.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.001033/0.3276, allocations: 0.5525 MB / 402.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3277, allocations: 12.95 kB / 402.4 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.851e-05/0.3278, allocations: 61.11 kB / 402.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.888e-05/0.3278, allocations: 38.17 kB / 402.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.3283, allocations: 224.8 kB / 402.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.3283, allocations: 19.08 kB / 402.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.3283, allocations: 25.91 kB / 402.8 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.3289, allocations: 293.8 kB / 403.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3289, allocations: 1.25 kB / 403.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.3289, allocations: 10.66 kB / 403.1 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3289, allocations: 5.25 kB / 403.1 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.3294, allocations: 207.5 kB / 403.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.3311, allocations: 1.117 MB / 404.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.3316, allocations: 190.4 kB / 404.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.3319, allocations: 123 kB / 404.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.3319, allocations: 3.094 kB / 404.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.3322, allocations: 172.4 kB / 404.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.3322, allocations: 0 / 404.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001465/0.3337, allocations: 439.4 kB / 405.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.3338, allocations: 132.5 kB / 405.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.3341, allocations: 249.3 kB / 405.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.3341, allocations: 31.11 kB / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.3342, allocations: 175 kB / 405.9 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.3343, allocations: 67.25 kB / 406 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.895e-05/0.3344, allocations: 55.2 kB / 406 MB, free: 2.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.517e-05/0.3345, allocations: 336.3 kB / 406.3 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.3346, allocations: 71.17 kB / 406.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.3348, allocations: 118.2 kB / 406.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.3351, allocations: 172.2 kB / 406.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3351, allocations: 1.156 kB / 406.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004981/0.3356, allocations: 290.3 kB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3356, allocations: 5.5 kB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3356, allocations: 1.469 kB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.336, allocations: 95.38 kB / 407.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3361, allocations: 25.31 kB / 407.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.3381, allocations: 2.039 MB / 409.1 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.3383, allocations: 32.7 kB / 409.2 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.3384, allocations: 15.48 kB / 409.2 MB, free: 168 kB / 318.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.0001996/0.3386, allocations: 149.7 kB / 409.3 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.545e-05/0.3386, allocations: 32.38 kB / 409.4 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.3387, allocations: 30.78 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.3387, allocations: 3.406 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3388, allocations: 2.172 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.3388, allocations: 5.219 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.3403, allocations: 0.7414 MB / 410.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3403, allocations: 0 / 410.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.3404, allocations: 26.44 kB / 410.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.3407, allocations: 86.44 kB / 410.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.3407, allocations: 2.125 kB / 410.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002712/0.3434, allocations: 2.041 MB / 412.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3434, allocations: 112 / 412.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007844/0.3442, allocations: 453.4 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.3443, allocations: 45.98 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.3444, allocations: 7.281 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.3446, allocations: 18.09 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.3447, allocations: 39.62 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.3447, allocations: 4.734 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.3449, allocations: 174 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3449, allocations: 4.062 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005242/0.3454, allocations: 92.66 kB / 413.1 MB, free: 13.2 MB / 334.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.001442/0.3469, allocations: 0.9904 MB / 414.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008242/0.3477, allocations: 341.3 kB / 414.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3477, allocations: 1.125 kB / 414.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004959/0.3482, allocations: 265.3 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.3487, allocations: 60.81 kB / 414.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004646/0.3533, allocations: 2.765 MB / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.3539, allocations: 0.7665 MB / 418.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.354, allocations: 21.12 kB / 418.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.3542, allocations: 86.38 kB / 418.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3542, allocations: 0 / 418.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.4028, allocations: 7.82 MB / 426.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.07, allocations: 11.97 kB / 426.2 MB, free: 4.582 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 16.073384697083384]