Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 119.5 kB / 17.07 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 191.9 kB / 18 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2705, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009194/0.2797, allocations: 8.32 MB / 408.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.2934, allocations: 11.29 MB / 419.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.2946, allocations: 59.56 kB / 419.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.2967, allocations: 0.8434 MB / 420.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003751/0.3005, allocations: 1.223 MB / 422 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.3023, allocations: 0.7012 MB / 422.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003918/0.3062, allocations: 2.697 MB / 425.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005153/0.3068, allocations: 349.7 kB / 425.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000754/0.3075, allocations: 0.5481 MB / 426.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.3082, allocations: 0.625 MB / 426.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3084, allocations: 72 kB / 427 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001741/0.3101, allocations: 0.7805 MB / 427.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.3103, allocations: 214.7 kB / 428 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006919/0.311, allocations: 0.7724 MB / 428.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002462/0.3135, allocations: 2.127 MB / 430.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3135, allocations: 0 / 430.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3135, allocations: 0 / 430.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.3136, allocations: 0 / 430.9 MB, free: 10.05 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.003374/0.3169, allocations: 2.284 MB / 433.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.317, allocations: 8.031 kB / 433.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.3171, allocations: 102.7 kB / 433.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002613/0.3174, allocations: 231.5 kB / 433.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.3192, allocations: 1.318 MB / 434.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.399e-05/0.3193, allocations: 41.3 kB / 434.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.746e-05/0.3194, allocations: 63.89 kB / 434.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3207, allocations: 0.7016 MB / 435.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3207, allocations: 0 / 435.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.658e-05/0.3208, allocations: 20 kB / 435.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.3208, allocations: 19.98 kB / 435.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3221, allocations: 0.5673 MB / 436.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003495/0.3256, allocations: 2.519 MB / 438.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.3269, allocations: 0.6193 MB / 439.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008991/0.3278, allocations: 0.5423 MB / 439.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009031/0.3368, allocations: 7.496 MB / 447.4 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008126/0.3377, allocations: 386 kB / 447.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.615e-06/0.3377, allocations: 0 / 447.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.005923/0.3436, allocations: 2.083 MB / 449.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.3437, allocations: 89.53 kB / 449.9 MB, free: 5.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.3454, allocations: 1.435 MB / 451.4 MB, free: 4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.3455, allocations: 33.7 kB / 451.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000723/0.3462, allocations: 0.8102 MB / 452.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.3464, allocations: 245.9 kB / 452.4 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.3466, allocations: 138.6 kB / 452.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3468, allocations: 334 kB / 452.9 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006026/0.3474, allocations: 249.8 kB / 453.1 MB, free: 2.184 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007462/0.3481, allocations: 462.2 kB / 453.6 MB, free: 1.652 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3495, allocations: 0.7363 MB / 454.3 MB, free: 0.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3495, allocations: 0 / 454.3 MB, free: 0.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002061/0.3516, allocations: 1.144 MB / 455.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3516, allocations: 8 kB / 455.5 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.3518, allocations: 75.98 kB / 455.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.353, allocations: 0.6958 MB / 456.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.3535, allocations: 111.9 kB / 456.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.3548, allocations: 1.128 MB / 457.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005831/0.3554, allocations: 99.47 kB / 457.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-05/0.3555, allocations: 40 kB / 457.6 MB, free: 13.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 (VCC.counter,$PRE.VCC.counter,VEE.counter,$PRE.VEE.counter,VEE.counter2,$PRE.VEE.counter2,VEE.T0,$PRE.VEE.T0,VCC.counter2,$PRE.VCC.counter2,VCC.T0,$PRE.VCC.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(5,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0004289/0.356, allocations: 277.7 kB / 457.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/0.3562, allocations: 214.7 kB / 458.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.3585, allocations: 1.088 MB / 459.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.3585, allocations: 11.94 kB / 459.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3585, allocations: 4 kB / 459.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3585, allocations: 3.984 kB / 459.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.3596, allocations: 0.9757 MB / 460.2 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.516e-05/0.3597, allocations: 71.98 kB / 460.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000328/0.3601, allocations: 47.95 kB / 460.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.3612, allocations: 0.6789 MB / 461 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.3613, allocations: 19.92 kB / 461 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.3626, allocations: 1.088 MB / 462.1 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3626, allocations: 0 / 462.1 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.3652, allocations: 1.36 MB / 463.5 MB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.3655, allocations: 283.7 kB / 463.7 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.3657, allocations: 23.86 kB / 463.8 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004316/0.3661, allocations: 31.97 kB / 463.8 MB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.3663, allocations: 48.38 kB / 463.8 MB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/0.3663, allocations: 27.98 kB / 463.9 MB, free: 7.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.3675, allocations: 0.9488 MB / 464.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3675, allocations: 3.938 kB / 464.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008561/0.3684, allocations: 431 kB / 465.2 MB, free: 5.715 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Q1.vbe,Q1.vbc,Q2.vbe,Q2.vbc) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,VCC.T0,VCC.counter,VCC.counter2,VEE.T0,VEE.counter,VEE.counter2) * Number of discrete states: 4 (VEE.counter,VCC.counter,VEE.counter2,VCC.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(5,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003655/0.372, allocations: 2.302 MB / 467.5 MB, free: 3.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.3741, allocations: 0.8584 MB / 468.4 MB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3741, allocations: 0 / 468.4 MB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.3753, allocations: 0.5135 MB / 468.9 MB, free: 1.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.3762, allocations: 216.6 kB / 469.1 MB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01599/0.3922, allocations: 10.77 MB / 479.9 MB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008209/0.3931, allocations: 1.216 MB / 481.1 MB, free: 5.406 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004481/0.3935, allocations: 162.1 kB / 481.3 MB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006856/0.3942, allocations: 0.6243 MB / 481.9 MB, free: 4.621 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3942, allocations: 0 / 481.9 MB, free: 4.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07141/0.4657, allocations: 32.5 MB / 0.5023 GB, free: 4.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.47/15.94, allocations: 12.19 kB / 0.5023 GB, free: 4.375 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkDifferentialPair/Spice3BenchmarkDifferentialPair.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches