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.001825/0.001825, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002311/0.002311, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001991/0.001991, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.294, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004991/0.299, allocations: 2.974 MB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.3006, allocations: 0.8079 MB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.3008, allocations: 7.938 kB / 434.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.3009, allocations: 51.5 kB / 435 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.3011, allocations: 99.12 kB / 435.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.3015, allocations: 115.8 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.302, allocations: 406.4 kB / 435.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.3022, allocations: 87.67 kB / 435.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.3025, allocations: 167.4 kB / 435.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.3027, allocations: 163.2 kB / 436 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.234e-05/0.3028, allocations: 40 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.221e-05/0.3029, allocations: 40 kB / 436.1 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.3029, allocations: 79.75 kB / 436.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.3031, allocations: 183.2 kB / 436.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.3036, allocations: 446.2 kB / 436.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3036, allocations: 0 / 436.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3036, allocations: 3.938 kB / 436.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3036, allocations: 0 / 436.8 MB, free: 1.207 MB / 334.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.001078/0.3047, allocations: 0.5528 MB / 437.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.3048, allocations: 8.031 kB / 437.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.534e-05/0.3048, allocations: 62.72 kB / 437.4 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.305, allocations: 48.69 kB / 437.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.3055, allocations: 222.9 kB / 437.7 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.3055, allocations: 20.88 kB / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.3055, allocations: 28.36 kB / 437.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005518/0.3061, allocations: 291.7 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3061, allocations: 3.984 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.3061, allocations: 12 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3061, allocations: 4 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004289/0.3066, allocations: 209.8 kB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.3083, allocations: 1.113 MB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.3088, allocations: 192.4 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.3092, allocations: 128.8 kB / 439.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.3092, allocations: 4 kB / 439.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/0.3095, allocations: 170.6 kB / 439.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.3095, allocations: 0 / 439.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001364/0.3108, allocations: 443.8 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.311, allocations: 132.5 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.3112, allocations: 249.1 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3113, allocations: 33.7 kB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3114, allocations: 176.6 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.423e-05/0.3115, allocations: 71.38 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.751e-05/0.3116, allocations: 49.7 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3117, allocations: 334.8 kB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.3119, allocations: 71.97 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/0.3122, allocations: 125.9 kB / 441.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.3125, allocations: 167.3 kB / 441.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3125, allocations: 4 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005181/0.3131, allocations: 294.1 kB / 441.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3131, allocations: 4 kB / 441.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3131, allocations: 3.984 kB / 441.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003293/0.3134, allocations: 88.8 kB / 442 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.3136, allocations: 23.98 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.3161, allocations: 2.059 MB / 444.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.3164, allocations: 31.83 kB / 444.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.3164, allocations: 12 kB / 444.1 MB, free: 9.418 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.0001881/0.3166, allocations: 149.8 kB / 444.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.3166, allocations: 31.86 kB / 444.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.236e-05/0.3167, allocations: 30.27 kB / 444.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3167, allocations: 4 kB / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.3167, allocations: 0 / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.3167, allocations: 0 / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.3177, allocations: 0.743 MB / 445.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3177, allocations: 3.938 kB / 445.1 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.3178, allocations: 24.02 kB / 445.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002647/0.3181, allocations: 84.8 kB / 445.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3181, allocations: 8 kB / 445.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/0.3205, allocations: 2.047 MB / 447.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3205, allocations: 0 / 447.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.3212, allocations: 451.3 kB / 447.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.981e-05/0.3213, allocations: 43.81 kB / 447.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.3213, allocations: 12 kB / 447.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.3215, allocations: 19.92 kB / 447.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3216, allocations: 40 kB / 447.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3217, allocations: 4 kB / 447.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.3218, allocations: 184.5 kB / 448 MB, free: 5.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3218, allocations: 0 / 448 MB, free: 5.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000459/0.3223, allocations: 91.83 kB / 448.1 MB, free: 5.277 MB / 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.001036/0.3233, allocations: 0.9822 MB / 449.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.324, allocations: 358.5 kB / 449.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.324, allocations: 256 / 449.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.3244, allocations: 254.5 kB / 449.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.3248, allocations: 52.81 kB / 449.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.3286, allocations: 2.786 MB / 452.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.329, allocations: 0.76 MB / 453.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.619e-05/0.3291, allocations: 30.27 kB / 453.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3292, allocations: 83.34 kB / 453.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3292, allocations: 0 / 453.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04161/0.3708, allocations: 7.828 MB / 461.2 MB, free: 8.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.13, allocations: 10.45 kB / 461.2 MB, free: 8.152 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.703853986924514]