Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001354/0.001354, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001328/0.001328, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.368/1.368, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 43.94 kB / 371.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2441, allocations: 52.19 MB / 423.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01382/0.2579, allocations: 12.88 MB / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.2812, allocations: 17.93 MB / 454.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.2836, allocations: 134.5 kB / 454.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003483/0.287, allocations: 1.166 MB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007892/0.2949, allocations: 2.39 MB / 457.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004626/0.2996, allocations: 1.422 MB / 459.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.3105, allocations: 6.645 MB / 465.9 MB, free: 3.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008905/0.3114, allocations: 274.2 kB / 466.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.3134, allocations: 1.186 MB / 467.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.3151, allocations: 1.145 MB / 468.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.3154, allocations: 76 kB / 468.6 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.319, allocations: 1.237 MB / 469.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004738/0.3195, allocations: 345.4 kB / 470.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.321, allocations: 1.048 MB / 471.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006201/0.3272, allocations: 4.04 MB / 475.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3272, allocations: 0 / 475.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3272, allocations: 0 / 475.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001356/0.3273, allocations: 0 / 475.2 MB, free: 10.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005869/0.3332, allocations: 3.882 MB / 479.1 MB, free: 6.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.3333, allocations: 8.031 kB / 479.1 MB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.838e-05/0.3333, allocations: 17 kB / 479.1 MB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.3334, allocations: 94.5 kB / 479.2 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005196/0.3339, allocations: 441.2 kB / 479.7 MB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003455/0.3374, allocations: 2.349 MB / 482 MB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.3374, allocations: 40.98 kB / 482.1 MB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.3376, allocations: 51.95 kB / 482.1 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.339, allocations: 0.7343 MB / 482.8 MB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.339, allocations: 0 / 482.8 MB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.734e-05/0.339, allocations: 16 kB / 482.9 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.3391, allocations: 23.98 kB / 482.9 MB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.3406, allocations: 0.8241 MB / 483.7 MB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005086/0.3457, allocations: 2.898 MB / 486.6 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.3468, allocations: 0.5242 MB / 487.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009338/0.3478, allocations: 0.5614 MB / 487.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02461/0.3724, allocations: 13.7 MB / 0.4896 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008904/0.3733, allocations: 369.6 kB / 0.49 GB, free: 15.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.527e-06/0.3733, allocations: 0 / 0.49 GB, free: 15.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002617/0.3759, allocations: 1.13 MB / 0.4911 GB, free: 13.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.376, allocations: 63.34 kB / 0.4912 GB, free: 13.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.3799, allocations: 3.09 MB / 0.4942 GB, free: 10.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.38, allocations: 33.7 kB / 0.4942 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.3814, allocations: 1.586 MB / 0.4958 GB, free: 9.191 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.3816, allocations: 174.6 kB / 0.4959 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003237/0.382, allocations: 230.3 kB / 0.4961 GB, free: 8.789 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3821, allocations: 345.9 kB / 0.4965 GB, free: 8.445 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.3827, allocations: 245.8 kB / 0.4967 GB, free: 8.207 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.3835, allocations: 0.594 MB / 0.4973 GB, free: 7.434 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.385, allocations: 0.9013 MB / 0.4982 GB, free: 6.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.385, allocations: 4 kB / 0.4982 GB, free: 6.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002279/0.3873, allocations: 1.263 MB / 0.4994 GB, free: 5.082 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3873, allocations: 12 kB / 0.4994 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.3874, allocations: 80 kB / 0.4995 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.078e-05/0.3874, allocations: 16 kB / 0.4995 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.3881, allocations: 199.6 kB / 0.4997 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.741e-05/0.3881, allocations: 27.92 kB / 0.4997 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009921/0.3891, allocations: 123.4 kB / 0.4998 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.3892, allocations: 64 kB / 0.4999 GB, free: 4.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007919/0.39, allocations: 461.3 kB / 0.5003 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004862/0.3905, allocations: 417.4 kB / 0.5007 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.3932, allocations: 1.207 MB / 0.5019 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.3932, allocations: 4 kB / 0.5019 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3932, allocations: 0 / 0.5019 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3932, allocations: 7.922 kB / 0.5019 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.3967, allocations: 2.064 MB / 0.5039 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-05/0.3968, allocations: 68 kB / 0.504 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.3973, allocations: 91.86 kB / 0.5041 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.3973, allocations: 0 / 0.5041 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.178e-05/0.3974, allocations: 35.98 kB / 0.5041 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.3974, allocations: 8.062 kB / 0.5041 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3974, allocations: 0 / 0.5041 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.3998, allocations: 1.343 MB / 0.5055 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008537/0.4006, allocations: 431.1 kB / 0.5059 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003184/0.4009, allocations: 12 kB / 0.5059 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006583/0.4016, allocations: 27.97 kB / 0.5059 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.4018, allocations: 71.8 kB / 0.506 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.4018, allocations: 36 kB / 0.506 GB, free: 14.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002862/0.4047, allocations: 2.007 MB / 0.508 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4047, allocations: 8 kB / 0.508 GB, free: 12.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001678/0.4064, allocations: 0.5969 MB / 0.5086 GB, free: 11.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003962/0.4103, allocations: 2.566 MB / 0.5111 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.412, allocations: 0.7789 MB / 0.5118 GB, free: 8.203 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.412, allocations: 4.062 kB / 0.5118 GB, free: 8.199 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000726/0.4127, allocations: 423.3 kB / 0.5122 GB, free: 7.762 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.4153, allocations: 0.6382 MB / 0.5129 GB, free: 7.121 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/0.4389, allocations: 17.06 MB / 0.5295 GB, free: 5.547 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.4399, allocations: 1.154 MB / 0.5306 GB, free: 4.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.4409, allocations: 361.3 kB / 0.531 GB, free: 3.996 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.4422, allocations: 1.265 MB / 0.5322 GB, free: 2.73 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4422, allocations: 0 / 0.5322 GB, free: 2.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.7151, allocations: 66.37 MB / 0.597 GB, free: 57.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.46/19.18, allocations: 6.797 kB / 0.597 GB, free: 57.45 MB / 446.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.885852820938453]