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.001609/0.001609, allocations: 119.4 kB / 17.79 MB, free: 5.285 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.002014/0.002014, allocations: 200.3 kB / 20.74 MB, free: 2.344 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.469/1.469, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001515/0.001515, allocations: 55.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1028, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004256/0.107, allocations: 2.95 MB / 429.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1084, allocations: 0.7985 MB / 430.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.1085, allocations: 7.938 kB / 430.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1087, allocations: 47.5 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.1089, allocations: 99.12 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.1092, allocations: 123.7 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005018/0.1097, allocations: 410.3 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.1099, allocations: 83.28 kB / 430.8 MB, free: 256 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.1102, allocations: 163.4 kB / 431 MB, free: 92 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1974/0.3075, allocations: 163.4 kB / 431.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.3077, allocations: 35.28 kB / 431.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.3078, allocations: 39.3 kB / 431.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.3079, allocations: 75.83 kB / 431.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3081, allocations: 185.3 kB / 431.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005539/0.3086, allocations: 440.3 kB / 431.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.3086, allocations: 0.5938 kB / 431.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3086, allocations: 2.094 kB / 431.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.3087, allocations: 0.6562 kB / 431.9 MB, free: 7.777 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.0009871/0.3097, allocations: 0.63 MB / 432.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3097, allocations: 9.469 kB / 432.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.669e-05/0.3098, allocations: 59.5 kB / 432.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.3099, allocations: 47.33 kB / 432.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.3103, allocations: 294.2 kB / 432.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3103, allocations: 17.44 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.3104, allocations: 29.47 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.3109, allocations: 289.9 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3109, allocations: 0.6562 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.3109, allocations: 11.03 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3109, allocations: 5.594 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.3113, allocations: 206.2 kB / 433.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.3127, allocations: 1.151 MB / 434.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/0.3132, allocations: 201.7 kB / 434.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.3135, allocations: 126.7 kB / 435 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.3135, allocations: 1.969 kB / 435 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.3138, allocations: 175.5 kB / 435.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.3138, allocations: 0 / 435.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001344/0.3151, allocations: 0.51 MB / 435.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.3152, allocations: 132.5 kB / 435.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.3154, allocations: 245.4 kB / 436 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.3154, allocations: 32.61 kB / 436 MB, free: 5.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3155, allocations: 169.6 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.655e-05/0.3156, allocations: 76.28 kB / 436.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.3157, allocations: 51.14 kB / 436.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.123e-05/0.3158, allocations: 335.4 kB / 436.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3159, allocations: 73.08 kB / 436.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.3161, allocations: 133.1 kB / 436.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.3165, allocations: 167.9 kB / 437 MB, free: 5.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3165, allocations: 1.969 kB / 437 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005722/0.3171, allocations: 291.5 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3171, allocations: 5.344 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3171, allocations: 2.125 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.3175, allocations: 98.64 kB / 437.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.3176, allocations: 29.69 kB / 437.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.3196, allocations: 2.135 MB / 439.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.3199, allocations: 33.78 kB / 439.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.3199, allocations: 13.09 kB / 439.6 MB, free: 3.324 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.0001454/0.32, allocations: 146.4 kB / 439.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.3201, allocations: 29.03 kB / 439.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.568e-05/0.3202, allocations: 31.06 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3202, allocations: 2.969 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3202, allocations: 2.781 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.3202, allocations: 2.25 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.3211, allocations: 0.7711 MB / 440.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.3211, allocations: 0.75 kB / 440.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.3213, allocations: 21.09 kB / 440.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002725/0.3215, allocations: 87.42 kB / 440.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.3215, allocations: 6.703 kB / 440.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.3234, allocations: 2.153 MB / 442.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3234, allocations: 0 / 442.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/0.324, allocations: 445 kB / 443.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3241, allocations: 134.5 kB / 443.4 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.3242, allocations: 15.2 kB / 443.5 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.3244, allocations: 18.69 kB / 443.5 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3245, allocations: 32.95 kB / 443.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.3245, allocations: 5.516 kB / 443.5 MB, free: 276 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.3247, allocations: 175.8 kB / 443.7 MB, free: 172 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3247, allocations: 0 / 443.7 MB, free: 172 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004975/0.3252, allocations: 94.27 kB / 443.8 MB, free: 152 kB / 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.001171/0.3263, allocations: 0.9885 MB / 444.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007735/0.3271, allocations: 352.6 kB / 445.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3271, allocations: 1.188 kB / 445.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004656/0.3276, allocations: 250.9 kB / 445.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.328, allocations: 56.44 kB / 445.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.3321, allocations: 2.776 MB / 448.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.3325, allocations: 0.7691 MB / 449 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.3326, allocations: 23.78 kB / 449 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3327, allocations: 82.33 kB / 449.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.3328, allocations: 0 / 449.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04279/0.3755, allocations: 7.644 MB / 456.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 1.469 kB / 456.7 MB, free: 10.68 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.29174458119087]