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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.259, allocations: 50.53 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00571/0.2647, allocations: 4.003 MB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.2679, allocations: 1.605 MB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.2683, allocations: 15.94 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008298/0.2691, allocations: 250.8 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007527/0.2699, allocations: 298.1 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006721/0.2706, allocations: 263.3 kB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008482/0.2714, allocations: 0.7242 MB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.2717, allocations: 168.9 kB / 416.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.2722, allocations: 282.9 kB / 416.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.2726, allocations: 298.8 kB / 416.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.676e-05/0.2727, allocations: 52 kB / 416.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.2729, allocations: 111.9 kB / 416.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.2731, allocations: 143.5 kB / 416.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.2734, allocations: 306.4 kB / 417.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000879/0.2743, allocations: 0.7226 MB / 418 MB, free: 8.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2743, allocations: 0 / 418 MB, free: 8.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2743, allocations: 0 / 418 MB, free: 8.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.2744, allocations: 0 / 418 MB, free: 8.285 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.001743/0.2761, allocations: 0.968 MB / 418.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2762, allocations: 8.031 kB / 418.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.2763, allocations: 82.64 kB / 419 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002384/0.2765, allocations: 80.52 kB / 419.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.2771, allocations: 423.1 kB / 419.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.2772, allocations: 41.3 kB / 419.5 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.2773, allocations: 43.88 kB / 419.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007623/0.2781, allocations: 449.5 kB / 420 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2781, allocations: 0 / 420 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.2782, allocations: 16 kB / 420 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.2782, allocations: 12 kB / 420.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006103/0.2788, allocations: 311.8 kB / 420.4 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.2814, allocations: 1.699 MB / 422.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007105/0.2821, allocations: 363.1 kB / 422.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.2825, allocations: 188.7 kB / 422.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.2825, allocations: 4 kB / 422.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004735/0.283, allocations: 262.5 kB / 422.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.283, allocations: 0 / 422.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002286/0.2853, allocations: 1.026 MB / 423.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.2854, allocations: 195.8 kB / 424.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.2861, allocations: 0.498 MB / 424.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.2862, allocations: 37.7 kB / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.2864, allocations: 256.8 kB / 424.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.2865, allocations: 130.9 kB / 425 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.2866, allocations: 78.12 kB / 425.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.2868, allocations: 362.7 kB / 425.4 MB, free: 392 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.2871, allocations: 124.8 kB / 425.5 MB, free: 268 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.2875, allocations: 217.3 kB / 425.8 MB, free: 16 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.288, allocations: 269.1 kB / 426 MB, free: 15.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.288, allocations: 3.984 kB / 426 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009082/0.2889, allocations: 477.3 kB / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.2889, allocations: 6.812 kB / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.289, allocations: 96 / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005319/0.2895, allocations: 163.3 kB / 426.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.2897, allocations: 47.84 kB / 426.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006021/0.2958, allocations: 6.648 MB / 433.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.2962, allocations: 55.81 kB / 433.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.2963, allocations: 15.98 kB / 433.4 MB, free: 7.762 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.0003121/0.2966, allocations: 189.3 kB / 433.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.81e-05/0.2967, allocations: 63.56 kB / 433.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.2968, allocations: 64.78 kB / 433.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2968, allocations: 4 kB / 433.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2969, allocations: 0 / 433.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2969, allocations: 7.938 kB / 433.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005904/0.2975, allocations: 497.2 kB / 434.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.2975, allocations: 0 / 434.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.2976, allocations: 27.97 kB / 434.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004409/0.2981, allocations: 159.2 kB / 434.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.2981, allocations: 7.984 kB / 434.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005758/0.3039, allocations: 6.371 MB / 440.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3039, allocations: 3.938 kB / 440.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.3051, allocations: 0.4998 MB / 441.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.3053, allocations: 164.6 kB / 441.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.3054, allocations: 12 kB / 441.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.3057, allocations: 32.16 kB / 441.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.3058, allocations: 51.88 kB / 441.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.3059, allocations: 19.98 kB / 441.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004733/0.3064, allocations: 371.1 kB / 441.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3064, allocations: 3.938 kB / 441.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007995/0.3072, allocations: 171.7 kB / 442.1 MB, free: 14.4 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,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * 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.002911/0.3101, allocations: 1.359 MB / 443.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.3114, allocations: 0.8071 MB / 444.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3114, allocations: 8.062 kB / 444.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008133/0.3123, allocations: 0.6508 MB / 444.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.3129, allocations: 120.4 kB / 445 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006674/0.3196, allocations: 4.3 MB / 449.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006044/0.3202, allocations: 0.8634 MB / 450.2 MB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00027/0.3205, allocations: 48.16 kB / 450.2 MB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.3208, allocations: 171.4 kB / 450.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3208, allocations: 0 / 450.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05394/0.3748, allocations: 14.53 MB / 464.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.93, allocations: 2.188 kB / 465 MB, free: 7.652 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/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) Reference file matches