Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.001564/0.001564, allocations: 114 kB / 20.43 MB, free: 1.457 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.001823/0.001823, allocations: 215.6 kB / 23.75 MB, free: 4.672 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.421/1.421, allocations: 230.5 MB / 257.4 MB, free: 8.02 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.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 63.91 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2787, allocations: 53.41 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006812/0.2855, allocations: 4.036 MB / 435.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003965/0.2895, allocations: 1.64 MB / 436.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006644/0.2902, allocations: 15.88 kB / 436.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.2913, allocations: 258.8 kB / 437.1 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.2924, allocations: 298.1 kB / 437.4 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008805/0.2933, allocations: 270.9 kB / 437.7 MB, free: 168 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001339/0.2946, allocations: 0.7319 MB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000387/0.295, allocations: 128.8 kB / 438.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007349/0.2957, allocations: 287 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006488/0.2964, allocations: 310.7 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.2966, allocations: 56 kB / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003959/0.297, allocations: 111.9 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.2972, allocations: 143.5 kB / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004855/0.2977, allocations: 314.3 kB / 439.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.2988, allocations: 0.7129 MB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2988, allocations: 0 / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2988, allocations: 0 / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.914e-05/0.2989, allocations: 3.984 kB / 440.5 MB, free: 13.38 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002149/0.301, allocations: 0.8888 MB / 441.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3011, allocations: 8.031 kB / 441.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001245/0.3012, allocations: 82.66 kB / 441.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003379/0.3015, allocations: 84.45 kB / 441.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000803/0.3023, allocations: 361.3 kB / 441.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.3024, allocations: 29.38 kB / 441.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.161e-05/0.3025, allocations: 40.38 kB / 441.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008631/0.3033, allocations: 445.7 kB / 442.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.3033, allocations: 0 / 442.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.3034, allocations: 19.98 kB / 442.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.3034, allocations: 12 kB / 442.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006581/0.304, allocations: 311.8 kB / 442.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.3067, allocations: 1.657 MB / 444.4 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.3074, allocations: 326.1 kB / 444.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.3077, allocations: 160.7 kB / 444.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.3078, allocations: 8 kB / 444.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004923/0.3083, allocations: 266.4 kB / 445.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.314e-06/0.3083, allocations: 0 / 445.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002082/0.3104, allocations: 0.7081 MB / 445.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.3105, allocations: 187.9 kB / 446 MB, free: 7.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006788/0.3112, allocations: 0.5057 MB / 446.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3112, allocations: 33.7 kB / 446.5 MB, free: 7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002296/0.3114, allocations: 264.7 kB / 446.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.3115, allocations: 127 kB / 446.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.3117, allocations: 78.12 kB / 447 MB, free: 6.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3119, allocations: 358.8 kB / 447.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.3121, allocations: 128.8 kB / 447.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.3125, allocations: 209.3 kB / 447.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.313, allocations: 277.1 kB / 448 MB, free: 5.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.313, allocations: 0 / 448 MB, free: 5.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008975/0.3139, allocations: 477 kB / 448.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3139, allocations: 8.094 kB / 448.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3139, allocations: 0 / 448.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005292/0.3145, allocations: 163.3 kB / 448.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.3147, allocations: 43.91 kB / 448.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005722/0.3204, allocations: 6.241 MB / 454.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.3208, allocations: 55.81 kB / 454.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.3208, allocations: 16 kB / 454.9 MB, free: 14.05 MB / 366.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.0003013/0.3211, allocations: 189.7 kB / 455.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3212, allocations: 51.67 kB / 455.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.3223, allocations: 0.5012 MB / 455.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3223, allocations: 7.938 kB / 455.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.3223, allocations: 0 / 455.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3223, allocations: 3.938 kB / 455.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000609/0.3229, allocations: 476.1 kB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3229, allocations: 128 / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.323, allocations: 31.97 kB / 456.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004265/0.3235, allocations: 155.3 kB / 456.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3235, allocations: 7.984 kB / 456.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005237/0.3287, allocations: 5.943 MB / 462.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3287, allocations: 3.984 kB / 462.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.3297, allocations: 0.4996 MB / 462.8 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.3299, allocations: 87.48 kB / 462.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.465e-05/0.33, allocations: 12 kB / 462.9 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.3303, allocations: 27.97 kB / 462.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.3304, allocations: 55.91 kB / 463 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.3304, allocations: 11.98 kB / 463 MB, free: 5.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004399/0.3309, allocations: 367.1 kB / 463.3 MB, free: 5.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3309, allocations: 7.938 kB / 463.4 MB, free: 5.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007807/0.3317, allocations: 167.7 kB / 463.5 MB, free: 4.918 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.002771/0.3344, allocations: 1.361 MB / 464.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.3357, allocations: 0.7874 MB / 465.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3357, allocations: 0 / 465.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000758/0.3365, allocations: 0.6315 MB / 466.3 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.3371, allocations: 142.8 kB / 466.4 MB, free: 2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006507/0.3436, allocations: 4.297 MB / 470.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.3441, allocations: 0.8633 MB / 471.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.3443, allocations: 56.16 kB / 471.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.3446, allocations: 171.4 kB / 471.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3446, allocations: 0 / 471.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06354/0.4081, allocations: 14.99 MB / 486.8 MB, free: 13.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.43, allocations: 6.469 kB / 486.8 MB, free: 13.6 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --stepSize=0.00118765 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 16.024194800062105]