Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 184.6 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 43.94 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2514, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005422/0.2568, allocations: 3.999 MB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.2595, allocations: 1.449 MB / 428.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003936/0.2599, allocations: 11.94 kB / 428.1 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008936/0.2608, allocations: 258.8 kB / 428.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007341/0.2615, allocations: 254.4 kB / 428.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008059/0.2623, allocations: 298.5 kB / 428.9 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.2633, allocations: 0.7046 MB / 429.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/0.2636, allocations: 124.8 kB / 429.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004909/0.2641, allocations: 287 kB / 430 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004681/0.2646, allocations: 302.7 kB / 430.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.856e-05/0.2647, allocations: 52 kB / 430.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002618/0.2649, allocations: 107.9 kB / 430.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.2651, allocations: 139.5 kB / 430.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.2654, allocations: 298.4 kB / 430.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008812/0.2663, allocations: 0.709 MB / 431.6 MB, free: 5.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2663, allocations: 4 kB / 431.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2663, allocations: 4 kB / 431.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.2664, allocations: 0 / 431.6 MB, free: 5.594 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001889/0.2682, allocations: 0.881 MB / 432.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.2683, allocations: 8.031 kB / 432.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.265e-05/0.2684, allocations: 78.7 kB / 432.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.2685, allocations: 76.45 kB / 432.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.2691, allocations: 353.3 kB / 433 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.2691, allocations: 29.38 kB / 433 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.2692, allocations: 43.94 kB / 433.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007561/0.27, allocations: 441.5 kB / 433.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.27, allocations: 0 / 433.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.27, allocations: 23.98 kB / 433.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.27, allocations: 12 kB / 433.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006038/0.2706, allocations: 307.8 kB / 433.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.2731, allocations: 1.664 MB / 435.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006901/0.2738, allocations: 330.8 kB / 435.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.2741, allocations: 164.8 kB / 436 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.2741, allocations: 7.938 kB / 436 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.2746, allocations: 254.5 kB / 436.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.314e-06/0.2746, allocations: 4 kB / 436.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002141/0.2768, allocations: 0.7042 MB / 436.9 MB, free: 0 / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001863/0.277, allocations: 196.1 kB / 437.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006553/0.2776, allocations: 0.4901 MB / 437.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.2777, allocations: 33.7 kB / 437.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.2779, allocations: 256.8 kB / 437.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.278, allocations: 134.9 kB / 438 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.2782, allocations: 74.14 kB / 438.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.2784, allocations: 358.8 kB / 438.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.2786, allocations: 120.8 kB / 438.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.279, allocations: 217.2 kB / 438.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.2794, allocations: 273.3 kB / 439.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2794, allocations: 64 / 439.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008198/0.2803, allocations: 477 kB / 439.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.2803, allocations: 8 kB / 439.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2803, allocations: 0 / 439.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005424/0.2808, allocations: 159.4 kB / 439.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.2811, allocations: 55.91 kB / 439.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/0.2866, allocations: 6.234 MB / 446 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.287, allocations: 51.78 kB / 446 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.287, allocations: 12 kB / 446 MB, free: 6.297 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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002809/0.2873, allocations: 191.8 kB / 446.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.091e-05/0.2874, allocations: 59.61 kB / 446.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.2884, allocations: 498.6 kB / 446.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.2884, allocations: 4 kB / 446.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2884, allocations: 4 kB / 446.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2884, allocations: 4 kB / 446.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005364/0.289, allocations: 476.1 kB / 447.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.289, allocations: 0 / 447.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.2891, allocations: 27.92 kB / 447.3 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004149/0.2895, allocations: 155.4 kB / 447.4 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.2895, allocations: 12 kB / 447.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005104/0.2946, allocations: 5.953 MB / 453.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2946, allocations: 0 / 453.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009633/0.2956, allocations: 0.4999 MB / 453.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.2958, allocations: 83.55 kB / 454 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.633e-05/0.2958, allocations: 8 kB / 454 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.2961, allocations: 35.97 kB / 454 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.2962, allocations: 47.91 kB / 454.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.2963, allocations: 12 kB / 454.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004016/0.2967, allocations: 359.1 kB / 454.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2967, allocations: 0 / 454.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007317/0.2974, allocations: 179.6 kB / 454.6 MB, free: 13.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002728/0.3001, allocations: 1.373 MB / 456 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3013, allocations: 0.7875 MB / 456.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3013, allocations: 3.938 kB / 456.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007289/0.302, allocations: 0.6313 MB / 457.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.3026, allocations: 113.9 kB / 457.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006085/0.3087, allocations: 4.248 MB / 461.8 MB, free: 5.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.3092, allocations: 0.8555 MB / 462.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.3093, allocations: 52.12 kB / 462.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.3096, allocations: 167.4 kB / 462.8 MB, free: 4.801 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3096, allocations: 0 / 462.8 MB, free: 4.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06115/0.3707, allocations: 14.86 MB / 477.7 MB, free: 6.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.23, allocations: 16.11 kB / 477.7 MB, free: 6.109 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --stepSize=0.00118765 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.749658960150555]