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.00141/0.00141, allocations: 121 kB / 18.49 MB, free: 4.586 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.001604/0.001604, allocations: 213.5 kB / 21.45 MB, free: 1.641 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.471/1.471, allocations: 230.6 MB / 254.8 MB, free: 15.09 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 47.94 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.0978, allocations: 53.32 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004116/0.1019, allocations: 2.95 MB / 430 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1032, allocations: 0.8024 MB / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.1033, allocations: 7.938 kB / 430.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1035, allocations: 51.5 kB / 430.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.1037, allocations: 107.1 kB / 430.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003208/0.104, allocations: 115.8 kB / 431.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.1044, allocations: 410.3 kB / 431.5 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.1046, allocations: 91.27 kB / 431.5 MB, free: 220 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.1049, allocations: 159.4 kB / 431.7 MB, free: 60 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.212/0.3169, allocations: 163.9 kB / 431.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.3171, allocations: 35.25 kB / 431.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.3173, allocations: 44.08 kB / 431.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.362e-05/0.3174, allocations: 73.62 kB / 432 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002511/0.3176, allocations: 179.1 kB / 432.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006568/0.3183, allocations: 442.6 kB / 432.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3183, allocations: 0.75 kB / 432.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3183, allocations: 0 / 432.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.3183, allocations: 2.625 kB / 432.6 MB, free: 7.781 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.00106/0.3194, allocations: 0.6269 MB / 433.2 MB, free: 7.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3194, allocations: 9.438 kB / 433.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.793e-05/0.3194, allocations: 7.656 kB / 433.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.983e-05/0.3195, allocations: 60.28 kB / 433.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.3196, allocations: 47.66 kB / 433.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.32, allocations: 295.3 kB / 433.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.32, allocations: 17.62 kB / 433.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.3201, allocations: 29.97 kB / 433.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.3205, allocations: 289.4 kB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3205, allocations: 0 / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.3205, allocations: 11.59 kB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.3206, allocations: 7.656 kB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.3209, allocations: 208.1 kB / 434.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.3225, allocations: 1.148 MB / 435.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.323, allocations: 193 kB / 435.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.3233, allocations: 127.8 kB / 435.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3233, allocations: 5.781 kB / 435.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.3236, allocations: 173.3 kB / 435.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.3236, allocations: 3.938 kB / 435.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001448/0.325, allocations: 0.5115 MB / 436.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.3251, allocations: 132.7 kB / 436.5 MB, free: 5.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.3253, allocations: 241.5 kB / 436.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.3254, allocations: 32.64 kB / 436.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3255, allocations: 175.1 kB / 436.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.3255, allocations: 67.78 kB / 437 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.213e-05/0.3256, allocations: 54.08 kB / 437 MB, free: 5.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.3257, allocations: 335.6 kB / 437.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.3258, allocations: 77.97 kB / 437.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.326, allocations: 124.4 kB / 437.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3263, allocations: 171.3 kB / 437.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3263, allocations: 0 / 437.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004709/0.3268, allocations: 287.7 kB / 438 MB, free: 5.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3268, allocations: 5.031 kB / 438 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3268, allocations: 2.281 kB / 438 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.3272, allocations: 104.6 kB / 438.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3273, allocations: 24.97 kB / 438.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.3293, allocations: 2.139 MB / 440.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.3296, allocations: 37.89 kB / 440.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3296, allocations: 10.59 kB / 440.3 MB, free: 3.328 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.0001339/0.3297, allocations: 144.9 kB / 440.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.3298, allocations: 28.36 kB / 440.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.085e-05/0.3298, allocations: 31.25 kB / 440.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3298, allocations: 3.219 kB / 440.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3298, allocations: 3.844 kB / 440.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3298, allocations: 2.297 kB / 440.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.3307, allocations: 0.7744 MB / 441.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3307, allocations: 1.281 kB / 441.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.3308, allocations: 18.36 kB / 441.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002561/0.3311, allocations: 89.7 kB / 441.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.3311, allocations: 7.422 kB / 441.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/0.333, allocations: 2.149 MB / 443.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.333, allocations: 0.9844 kB / 443.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006171/0.3336, allocations: 453.2 kB / 444 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.49e-05/0.3337, allocations: 125.6 kB / 444.2 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.3337, allocations: 7.547 kB / 444.2 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.3339, allocations: 19.03 kB / 444.2 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.334, allocations: 38.3 kB / 444.2 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.334, allocations: 5.938 kB / 444.2 MB, free: 280 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.3342, allocations: 175.7 kB / 444.4 MB, free: 176 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3342, allocations: 4 kB / 444.4 MB, free: 172 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004638/0.3346, allocations: 96.11 kB / 444.5 MB, free: 148 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.001008/0.3356, allocations: 0.9863 MB / 445.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007629/0.3364, allocations: 357.2 kB / 445.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3364, allocations: 1.406 kB / 445.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.3369, allocations: 247.5 kB / 446.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.3373, allocations: 55.88 kB / 446.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.3412, allocations: 2.777 MB / 448.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.3416, allocations: 0.7678 MB / 449.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.3417, allocations: 20.81 kB / 449.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.3419, allocations: 83.28 kB / 449.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3419, allocations: 0 / 449.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.3762, allocations: 7.682 MB / 457.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.96, allocations: 13.66 kB / 457.5 MB, free: 10.61 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.639724326028954]