Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 118.3 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.91 kB / 373.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09875, allocations: 53.37 MB / 427.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00426/0.103, allocations: 2.958 MB / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1045, allocations: 0.8062 MB / 430.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.1047, allocations: 8 kB / 430.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1049, allocations: 51.5 kB / 430.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.1051, allocations: 99.12 kB / 431 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003788/0.1054, allocations: 119.7 kB / 431.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004359/0.1059, allocations: 414.3 kB / 431.5 MB, free: 112 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.1061, allocations: 87.28 kB / 431.6 MB, free: 16 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1916/0.2977, allocations: 161.7 kB / 431.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.298, allocations: 164.9 kB / 431.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.993e-05/0.2981, allocations: 38.56 kB / 432 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.2982, allocations: 38.86 kB / 432 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.2983, allocations: 80.16 kB / 432.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.2984, allocations: 183.4 kB / 432.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005611/0.299, allocations: 437.8 kB / 432.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.299, allocations: 0.8438 kB / 432.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.299, allocations: 0 / 432.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.299, allocations: 0 / 432.7 MB, free: 8.012 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.0009726/0.3, allocations: 0.6332 MB / 433.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3, allocations: 9.5 kB / 433.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.283e-05/0.3001, allocations: 7.531 kB / 433.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.918e-05/0.3001, allocations: 59.8 kB / 433.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.3003, allocations: 47.75 kB / 433.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.3006, allocations: 288.7 kB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.3006, allocations: 20.78 kB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.3007, allocations: 24.66 kB / 433.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.3011, allocations: 292.5 kB / 434 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3011, allocations: 0 / 434 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.3012, allocations: 14.09 kB / 434.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.3012, allocations: 6.781 kB / 434.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.3015, allocations: 208.9 kB / 434.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.303, allocations: 1.147 MB / 435.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.3035, allocations: 202.7 kB / 435.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.3038, allocations: 124.8 kB / 435.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.3038, allocations: 2.25 kB / 435.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.3041, allocations: 170.5 kB / 435.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/0.3041, allocations: 1.312 kB / 435.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001464/0.3056, allocations: 0.5135 MB / 436.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.3056, allocations: 132 kB / 436.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.3059, allocations: 245.8 kB / 436.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.3059, allocations: 33.08 kB / 436.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.306, allocations: 174.1 kB / 437 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.306, allocations: 72.77 kB / 437.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.328e-05/0.3061, allocations: 51.05 kB / 437.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.469e-05/0.3062, allocations: 336.8 kB / 437.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3063, allocations: 72.17 kB / 437.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.3065, allocations: 122.2 kB / 437.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.3067, allocations: 172.1 kB / 437.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3067, allocations: 0 / 437.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004695/0.3072, allocations: 290.8 kB / 438.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3072, allocations: 5.906 kB / 438.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3072, allocations: 1.031 kB / 438.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.3076, allocations: 98.86 kB / 438.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.3077, allocations: 29.66 kB / 438.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.3097, allocations: 2.135 MB / 440.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.3099, allocations: 34.98 kB / 440.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.3099, allocations: 9.312 kB / 440.4 MB, free: 3.289 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.0001445/0.3101, allocations: 149.3 kB / 440.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.3101, allocations: 28.92 kB / 440.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.481e-05/0.3102, allocations: 38.38 kB / 440.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3102, allocations: 2.281 kB / 440.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3102, allocations: 2.016 kB / 440.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3102, allocations: 0.9844 kB / 440.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009437/0.3111, allocations: 0.7714 MB / 441.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3111, allocations: 1.062 kB / 441.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.3113, allocations: 18.41 kB / 441.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.3115, allocations: 88.89 kB / 441.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.3115, allocations: 6.547 kB / 441.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.3134, allocations: 2.15 MB / 443.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3134, allocations: 1.031 kB / 443.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.314, allocations: 459.3 kB / 444.1 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3141, allocations: 130.7 kB / 444.2 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.3141, allocations: 8.031 kB / 444.2 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.3143, allocations: 13.56 kB / 444.2 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.3144, allocations: 34.25 kB / 444.3 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3144, allocations: 5.328 kB / 444.3 MB, free: 232 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.3146, allocations: 179.8 kB / 444.5 MB, free: 120 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3146, allocations: 0 / 444.5 MB, free: 120 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004919/0.3151, allocations: 88.89 kB / 444.5 MB, free: 104 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.001057/0.3161, allocations: 0.9912 MB / 445.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007835/0.3169, allocations: 353.7 kB / 445.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3169, allocations: 0.5 kB / 445.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004731/0.3174, allocations: 250.9 kB / 446.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.3178, allocations: 63.94 kB / 446.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.3217, allocations: 2.769 MB / 449 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.3221, allocations: 0.7685 MB / 449.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.3222, allocations: 30.8 kB / 449.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3224, allocations: 82.55 kB / 449.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3224, allocations: 0 / 449.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03136/0.3538, allocations: 7.68 MB / 457.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.31, allocations: 9.141 kB / 457.5 MB, free: 10.54 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.915030378033407]