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.001123/0.001123, allocations: 121.6 kB / 17.79 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.00126/0.00126, allocations: 204.7 kB / 18.74 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.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004656/0.2569, allocations: 3.997 MB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.2595, allocations: 1.605 MB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.2597, allocations: 11.94 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006948/0.2604, allocations: 250.4 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006011/0.261, allocations: 302.1 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.2616, allocations: 267.3 kB / 415.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.2623, allocations: 0.7202 MB / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.2626, allocations: 176.9 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003485/0.2629, allocations: 286.9 kB / 416.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.2632, allocations: 302.8 kB / 416.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.948e-05/0.2633, allocations: 52 kB / 416.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.2635, allocations: 107.9 kB / 416.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.2636, allocations: 143.5 kB / 416.9 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/0.2639, allocations: 298.5 kB / 417.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.2646, allocations: 0.7303 MB / 418 MB, free: 8.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2646, allocations: 0 / 418 MB, free: 8.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2646, allocations: 0 / 418 MB, free: 8.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2646, allocations: 0 / 418 MB, free: 8.297 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.0015/0.2661, allocations: 0.9641 MB / 418.9 MB, free: 7.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2662, allocations: 12.03 kB / 418.9 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.922e-05/0.2663, allocations: 78.7 kB / 419 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.2665, allocations: 80.5 kB / 419.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/0.267, allocations: 431 kB / 419.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.267, allocations: 29.38 kB / 419.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.2671, allocations: 47.88 kB / 419.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006814/0.2678, allocations: 441.5 kB / 420 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.2678, allocations: 4 kB / 420 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.2679, allocations: 16 kB / 420 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.2679, allocations: 11.98 kB / 420.1 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.2685, allocations: 311.8 kB / 420.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.2707, allocations: 1.703 MB / 422.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006373/0.2713, allocations: 363 kB / 422.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.2716, allocations: 188.8 kB / 422.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.2717, allocations: 4 kB / 422.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004068/0.2721, allocations: 270.3 kB / 422.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.2721, allocations: 0 / 422.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002056/0.2742, allocations: 1.018 MB / 423.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.2743, allocations: 195.9 kB / 424.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/0.2748, allocations: 0.498 MB / 424.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.2749, allocations: 33.7 kB / 424.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.2751, allocations: 260.8 kB / 424.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.594e-05/0.2752, allocations: 130.9 kB / 425 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.2753, allocations: 82.12 kB / 425.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2754, allocations: 358.8 kB / 425.4 MB, free: 408 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002379/0.2757, allocations: 120.8 kB / 425.5 MB, free: 288 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.276, allocations: 213.2 kB / 425.7 MB, free: 40 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.2765, allocations: 281.1 kB / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2765, allocations: 0 / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007671/0.2772, allocations: 481.4 kB / 426.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2773, allocations: 8 kB / 426.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2773, allocations: 0 / 426.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004818/0.2778, allocations: 155.3 kB / 426.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.278, allocations: 47.92 kB / 426.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.2826, allocations: 6.644 MB / 433.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.283, allocations: 51.81 kB / 433.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.283, allocations: 12 kB / 433.4 MB, free: 7.789 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.0002339/0.2833, allocations: 193.5 kB / 433.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.752e-05/0.2833, allocations: 63.56 kB / 433.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.2835, allocations: 64.78 kB / 433.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2835, allocations: 4 kB / 433.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2835, allocations: 0 / 433.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2835, allocations: 3.984 kB / 433.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.284, allocations: 497.2 kB / 434.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.284, allocations: 3.938 kB / 434.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.2841, allocations: 35.91 kB / 434.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000406/0.2845, allocations: 155.4 kB / 434.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.2846, allocations: 15.98 kB / 434.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004461/0.289, allocations: 6.367 MB / 440.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.2891, allocations: 3.938 kB / 440.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.29, allocations: 0.5076 MB / 441.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.2902, allocations: 160.6 kB / 441.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.876e-05/0.2903, allocations: 12 kB / 441.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.2906, allocations: 31.97 kB / 441.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.2908, allocations: 55.95 kB / 441.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.2908, allocations: 11.94 kB / 441.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004245/0.2912, allocations: 371.1 kB / 441.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2912, allocations: 0 / 441.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007811/0.292, allocations: 171.7 kB / 442.1 MB, free: 14.42 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.002019/0.294, allocations: 1.368 MB / 443.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.2952, allocations: 0.8148 MB / 444.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2952, allocations: 0 / 444.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006727/0.2959, allocations: 0.6587 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.0005163/0.2964, allocations: 113.1 kB / 445 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.302, allocations: 4.292 MB / 449.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.3024, allocations: 0.8673 MB / 450.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001918/0.3026, allocations: 52.16 kB / 450.3 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.3029, allocations: 171.4 kB / 450.4 MB, free: 5.934 MB / 366.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3029, allocations: 3.938 kB / 450.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03971/0.3426, allocations: 14.53 MB / 465 MB, free: 7.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.38, allocations: 4.062 kB / 465 MB, free: 7.664 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.0.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