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.001278/0.001278, 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.001305/0.001305, allocations: 200.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.415/1.415, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.84 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2639, allocations: 50.54 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00551/0.2694, allocations: 3.988 MB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003005/0.2724, allocations: 1.62 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.2727, allocations: 8 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00075/0.2735, allocations: 250.8 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006552/0.2742, allocations: 297.8 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006191/0.2748, allocations: 271.3 kB / 415.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007824/0.2756, allocations: 0.7358 MB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.2759, allocations: 160.9 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.2763, allocations: 287 kB / 416.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.2767, allocations: 306.7 kB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.588e-05/0.2768, allocations: 52 kB / 416.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.277, allocations: 99.97 kB / 416.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.2772, allocations: 151.4 kB / 417 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.2775, allocations: 298.5 kB / 417.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008493/0.2784, allocations: 0.7226 MB / 418 MB, free: 8.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2784, allocations: 0 / 418 MB, free: 8.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.2784, allocations: 0 / 418 MB, free: 8.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.2784, allocations: 3.938 kB / 418 MB, free: 8.215 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.001655/0.28, allocations: 0.968 MB / 419 MB, free: 7.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.2801, allocations: 8.031 kB / 419 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.858e-05/0.2802, allocations: 74.72 kB / 419.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.2804, allocations: 84.44 kB / 419.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000557/0.281, allocations: 439.1 kB / 419.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.281, allocations: 33.38 kB / 419.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.2811, allocations: 39.94 kB / 419.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007397/0.2818, allocations: 445.5 kB / 420.1 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2818, allocations: 0 / 420.1 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.2819, allocations: 16 kB / 420.1 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2819, allocations: 8 kB / 420.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006349/0.2825, allocations: 315.8 kB / 420.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.285, allocations: 1.707 MB / 422.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.2857, allocations: 359.1 kB / 422.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.286, allocations: 184.8 kB / 422.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.2861, allocations: 4 kB / 422.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004675/0.2866, allocations: 262.5 kB / 422.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.703e-06/0.2866, allocations: 3.938 kB / 422.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002265/0.2889, allocations: 1.022 MB / 424 MB, free: 1.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.289, allocations: 191.8 kB / 424.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006247/0.2896, allocations: 0.5058 MB / 424.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.2897, allocations: 37.7 kB / 424.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.2899, allocations: 264.7 kB / 425 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.29, allocations: 130.9 kB / 425.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.2902, allocations: 74.14 kB / 425.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2904, allocations: 362.8 kB / 425.5 MB, free: 316 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.2906, allocations: 120.8 kB / 425.6 MB, free: 196 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/0.291, allocations: 217.3 kB / 425.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004925/0.2915, allocations: 269.1 kB / 426.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2915, allocations: 0 / 426.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00086/0.2924, allocations: 481.2 kB / 426.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2924, allocations: 4 kB / 426.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2924, allocations: 0 / 426.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005462/0.293, allocations: 163.4 kB / 426.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.2932, allocations: 51.84 kB / 426.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/0.2989, allocations: 6.64 MB / 433.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.2994, allocations: 47.77 kB / 433.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.2994, allocations: 16 kB / 433.5 MB, free: 7.703 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.0002856/0.2997, allocations: 196.3 kB / 433.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.073e-05/0.2998, allocations: 67.55 kB / 433.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.2999, allocations: 56.8 kB / 433.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3, allocations: 4 kB / 433.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3, allocations: 0 / 433.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3, allocations: 3.984 kB / 433.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005828/0.3006, allocations: 0.4933 MB / 434.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3006, allocations: 4 kB / 434.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.3007, allocations: 23.98 kB / 434.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000452/0.3012, allocations: 163.2 kB / 434.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.3012, allocations: 4 kB / 434.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005661/0.3069, allocations: 6.363 MB / 440.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3069, allocations: 3.938 kB / 440.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.308, allocations: 0.5076 MB / 441.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.3082, allocations: 164.5 kB / 441.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.391e-05/0.3082, allocations: 8 kB / 441.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.3085, allocations: 36.16 kB / 441.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3087, allocations: 51.86 kB / 441.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.3087, allocations: 16 kB / 441.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004713/0.3092, allocations: 371.1 kB / 442 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3092, allocations: 0 / 442 MB, free: 14.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007937/0.31, allocations: 175.7 kB / 442.2 MB, free: 14.34 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.002644/0.3127, allocations: 1.367 MB / 443.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3139, allocations: 0.8031 MB / 444.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3139, allocations: 0 / 444.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.3147, allocations: 0.6588 MB / 445 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000572/0.3153, allocations: 121.8 kB / 445.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006308/0.3216, allocations: 4.288 MB / 449.4 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00053/0.3222, allocations: 0.8706 MB / 450.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3224, allocations: 52.14 kB / 450.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.3226, allocations: 179.3 kB / 450.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3226, allocations: 0 / 450.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06564/0.3883, allocations: 14.52 MB / 465 MB, free: 7.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.89, allocations: 7.75 kB / 465 MB, free: 7.594 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 & /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 --timeout=50 --tolerance=1e-06 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.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) Reference file matches