Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.001739/0.001739, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002201/0.002201, allocations: 209.4 kB / 24.51 MB, free: 3.941 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.459/1.459, allocations: 230.5 MB / 258.2 MB, free: 7.812 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.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 55.91 kB / 378.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2923, allocations: 53.41 MB / 431.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003916/0.2962, allocations: 2.55 MB / 434.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.2976, allocations: 0.6778 MB / 435.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.2977, allocations: 7.938 kB / 435.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.2978, allocations: 39.58 kB / 435.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001653/0.298, allocations: 87.27 kB / 435.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.2984, allocations: 111.8 kB / 435.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004083/0.2988, allocations: 358.5 kB / 435.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.299, allocations: 72.83 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.2993, allocations: 139.5 kB / 435.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.2995, allocations: 171.3 kB / 436.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.462e-05/0.2995, allocations: 36 kB / 436.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.382e-05/0.2996, allocations: 32 kB / 436.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.935e-05/0.2997, allocations: 67.75 kB / 436.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.2998, allocations: 127.5 kB / 436.4 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004116/0.3002, allocations: 346.6 kB / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3002, allocations: 0 / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3002, allocations: 0 / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.3003, allocations: 0 / 436.7 MB, free: 1.68 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001535/0.3018, allocations: 0.5832 MB / 437.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3018, allocations: 8.031 kB / 437.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.839e-05/0.3019, allocations: 4.625 kB / 437.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.502e-05/0.3019, allocations: 58.73 kB / 437.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.3021, allocations: 40.73 kB / 437.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3025, allocations: 206.9 kB / 437.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.3025, allocations: 12.81 kB / 437.6 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.3026, allocations: 20.38 kB / 437.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.3033, allocations: 358 kB / 438 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3033, allocations: 0 / 438 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.3034, allocations: 8 kB / 438 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.3034, allocations: 4 kB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007954/0.3042, allocations: 273.5 kB / 438.3 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.3059, allocations: 0.9686 MB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/0.3079, allocations: 426.3 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000401/0.3083, allocations: 136.8 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3083, allocations: 4 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.3083, allocations: 38.5 kB / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.3083, allocations: 0 / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005304/0.3136, allocations: 0.9392 MB / 440.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.3137, allocations: 55.41 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.314, allocations: 228.8 kB / 441 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.314, allocations: 29.7 kB / 441.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3141, allocations: 156.2 kB / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.3142, allocations: 51.62 kB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.3143, allocations: 41.66 kB / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3144, allocations: 330.8 kB / 441.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003759/0.3148, allocations: 103.9 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003693/0.3152, allocations: 133.5 kB / 441.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.3159, allocations: 228.2 kB / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3159, allocations: 0 / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003113/0.319, allocations: 0.6385 MB / 442.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.319, allocations: 4 kB / 442.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.319, allocations: 0 / 442.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/0.3198, allocations: 224.6 kB / 442.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.32, allocations: 39.91 kB / 443 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007449/0.3275, allocations: 2.623 MB / 445.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.3278, allocations: 31.88 kB / 445.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.3278, allocations: 11.98 kB / 445.6 MB, free: 8.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001907/0.328, allocations: 133.3 kB / 445.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.3281, allocations: 19.97 kB / 445.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.442e-05/0.3281, allocations: 29.77 kB / 445.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3281, allocations: 0 / 445.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3281, allocations: 0 / 445.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3281, allocations: 0 / 445.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.3285, allocations: 260.5 kB / 446.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3285, allocations: 0 / 446.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.3287, allocations: 35.91 kB / 446.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006866/0.3294, allocations: 224.7 kB / 446.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.3294, allocations: 0 / 446.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007169/0.3366, allocations: 2.616 MB / 449 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3366, allocations: 0 / 449 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.34, allocations: 0.8541 MB / 449.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.525e-05/0.34, allocations: 15.89 kB / 449.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.3401, allocations: 4 kB / 449.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.3404, allocations: 36.03 kB / 449.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.3404, allocations: 7.984 kB / 449.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3405, allocations: 11.98 kB / 449.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.3406, allocations: 160.5 kB / 450 MB, free: 3.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3406, allocations: 0 / 450 MB, free: 3.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.3411, allocations: 83.83 kB / 450.1 MB, free: 3.695 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00367/0.3448, allocations: 1.381 MB / 451.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.3464, allocations: 434.4 kB / 451.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3464, allocations: 3.938 kB / 451.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.3476, allocations: 330.5 kB / 452.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.348, allocations: 39.02 kB / 452.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009295/0.3573, allocations: 3.359 MB / 455.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.3575, allocations: 137.8 kB / 455.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.3576, allocations: 13.48 kB / 455.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3577, allocations: 75.41 kB / 455.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3577, allocations: 0 / 455.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.3912, allocations: 7.462 MB / 463.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.19, allocations: 10.72 kB / 463.3 MB, free: 6.469 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.874304374912754]