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.001409/0.001409, allocations: 107.6 kB / 16.92 MB, free: 5.746 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.001597/0.001597, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.298/2.298, allocations: 222.9 MB / 241.5 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.00172, allocations: 42.38 kB / 300.7 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1112, allocations: 49.44 MB / 350.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.01158/0.1228, allocations: 8.313 MB / 358.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.1382, allocations: 11.3 MB / 369.8 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.1401, allocations: 23.88 kB / 369.8 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2344/0.3745, allocations: 0.8258 MB / 370.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007619/0.3822, allocations: 1.226 MB / 371.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.3857, allocations: 0.7043 MB / 372.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006735/0.3925, allocations: 2.673 MB / 375.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000919/0.3934, allocations: 348.2 kB / 375.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.3948, allocations: 0.5467 MB / 376.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001475/0.3963, allocations: 0.6216 MB / 376.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003806/0.3967, allocations: 67.38 kB / 376.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003909/0.4006, allocations: 0.777 MB / 377.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004886/0.4011, allocations: 216.7 kB / 377.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002438/0.4036, allocations: 0.7732 MB / 378.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005352/0.4089, allocations: 2.097 MB / 380.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.409, allocations: 1.094 kB / 380.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.409, allocations: 0 / 380.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.4091, allocations: 0 / 380.7 MB, free: 8.254 MB / 302.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.007005/0.4161, allocations: 2.21 MB / 382.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.4162, allocations: 10.5 kB / 382.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002631/0.4165, allocations: 105.2 kB / 383 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006141/0.4171, allocations: 223.7 kB / 383.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003313/0.4204, allocations: 1.31 MB / 384.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.861e-05/0.4205, allocations: 43 kB / 384.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.4207, allocations: 57.64 kB / 384.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.4231, allocations: 0.6928 MB / 385.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.4231, allocations: 0 / 385.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.4232, allocations: 21.88 kB / 385.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/0.4233, allocations: 21.02 kB / 385.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/0.4256, allocations: 0.5685 MB / 385.9 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006043/0.4316, allocations: 2.518 MB / 388.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.4337, allocations: 0.6254 MB / 389.1 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.4352, allocations: 0.5352 MB / 389.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0135/0.4487, allocations: 7.51 MB / 397.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.4502, allocations: 380.1 kB / 397.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 5.26e-06/0.4503, allocations: 0 / 397.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.01075/0.461, allocations: 2.077 MB / 399.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.259e-05/0.4612, allocations: 89 kB / 399.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/0.4649, allocations: 1.434 MB / 401.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.465, allocations: 38.67 kB / 401.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.4662, allocations: 0.7998 MB / 401.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.4666, allocations: 235.7 kB / 402.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/0.467, allocations: 137.3 kB / 402.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4672, allocations: 336 kB / 402.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.4693, allocations: 253.9 kB / 402.8 MB, free: 8.695 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.4705, allocations: 455.7 kB / 403.3 MB, free: 8.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/0.4729, allocations: 0.7384 MB / 404 MB, free: 7.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.473, allocations: 4 kB / 404 MB, free: 7.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003373/0.4764, allocations: 1.136 MB / 405.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.4764, allocations: 8 kB / 405.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001784/0.4766, allocations: 79.42 kB / 405.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/0.4786, allocations: 0.6956 MB / 406 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007896/0.4794, allocations: 111.8 kB / 406.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.4817, allocations: 1.132 MB / 407.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.4832, allocations: 87.31 kB / 407.3 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.4834, allocations: 35.94 kB / 407.3 MB, free: 4.176 MB / 318.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.0009046/0.4843, allocations: 289.7 kB / 407.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006125/0.4849, allocations: 201.6 kB / 407.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004394/0.4893, allocations: 1.08 MB / 408.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.4894, allocations: 8 kB / 408.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.4894, allocations: 4 kB / 408.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.4894, allocations: 11.91 kB / 408.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.4919, allocations: 0.9705 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001718/0.492, allocations: 71.98 kB / 409.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005761/0.4926, allocations: 63.88 kB / 410 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001887/0.4945, allocations: 0.6594 MB / 410.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.139e-05/0.4946, allocations: 23.98 kB / 410.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.4969, allocations: 1.086 MB / 411.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4969, allocations: 3.984 kB / 411.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.5018, allocations: 1.351 MB / 413.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009548/0.5028, allocations: 282.5 kB / 413.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005257/0.5034, allocations: 12 kB / 413.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.5045, allocations: 39.89 kB / 413.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.5048, allocations: 48.38 kB / 413.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.915e-05/0.5049, allocations: 24 kB / 413.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002485/0.5074, allocations: 0.9488 MB / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.896e-06/0.5074, allocations: 0 / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002256/0.5097, allocations: 435.3 kB / 414.9 MB, free: 12.43 MB / 334.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.006568/0.5163, allocations: 2.273 MB / 417.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.5199, allocations: 0.8691 MB / 418 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.52, allocations: 4.062 kB / 418 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.5219, allocations: 0.5213 MB / 418.6 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/0.524, allocations: 219.6 kB / 418.8 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/0.554, allocations: 12.02 MB / 430.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/0.5552, allocations: 1.216 MB / 432 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.5563, allocations: 162.1 kB / 432.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.5574, allocations: 0.6243 MB / 432.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5574, allocations: 0 / 432.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1494/0.7068, allocations: 32.06 MB / 464.9 MB, free: 9.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.8/21.51, allocations: 8.062 kB / 464.9 MB, free: 9.785 MB / 382.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