Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.001982/0.001982, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001948/0.001948, allocations: 194 kB / 23.71 MB, free: 4.406 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.449/1.449, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 47.92 kB / 370.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2451, allocations: 52.19 MB / 422.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005566/0.2506, allocations: 4.021 MB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002063/0.2527, allocations: 1.153 MB / 427.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002206/0.2529, allocations: 15.94 kB / 427.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004004/0.2533, allocations: 140.4 kB / 427.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004028/0.2537, allocations: 206.3 kB / 428.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004077/0.2541, allocations: 203.6 kB / 428.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008018/0.2549, allocations: 0.7591 MB / 429.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.2553, allocations: 179 kB / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003552/0.2556, allocations: 295 kB / 429.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003711/0.256, allocations: 286.4 kB / 429.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.2561, allocations: 67.98 kB / 429.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.2562, allocations: 64 kB / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.2563, allocations: 151.5 kB / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.2566, allocations: 274.7 kB / 430.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000752/0.2574, allocations: 0.7585 MB / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2574, allocations: 0 / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2574, allocations: 0 / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.2574, allocations: 0 / 431.1 MB, free: 5.766 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001733/0.2591, allocations: 0.946 MB / 432.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2592, allocations: 12.03 kB / 432.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.2593, allocations: 94.69 kB / 432.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.2594, allocations: 80.47 kB / 432.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.26, allocations: 348.4 kB / 432.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.26, allocations: 45.69 kB / 432.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.2601, allocations: 60.08 kB / 432.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.2611, allocations: 0.7252 MB / 433.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.2612, allocations: 0 / 433.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.2612, allocations: 24 kB / 433.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2612, allocations: 16 kB / 433.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008669/0.2621, allocations: 417 kB / 433.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002887/0.265, allocations: 1.615 MB / 435.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007332/0.2657, allocations: 359.9 kB / 435.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.2668, allocations: 413.1 kB / 436.3 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.2668, allocations: 8.328 kB / 436.3 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006242/0.2674, allocations: 474.3 kB / 436.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.2674, allocations: 0 / 436.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.003478/0.2709, allocations: 1.102 MB / 437.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.271, allocations: 243.3 kB / 438.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.2717, allocations: 433.9 kB / 438.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.2717, allocations: 33.7 kB / 438.5 MB, free: 14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002555/0.272, allocations: 316.7 kB / 438.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.2721, allocations: 150.7 kB / 439 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.2722, allocations: 94.19 kB / 439.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.2724, allocations: 362.7 kB / 439.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.2728, allocations: 148.9 kB / 439.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005736/0.2733, allocations: 0.4892 MB / 440.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007788/0.2741, allocations: 443.2 kB / 440.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2741, allocations: 0 / 440.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001738/0.2758, allocations: 0.7557 MB / 441.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.2759, allocations: 8 kB / 441.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.2759, allocations: 7.938 kB / 441.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006068/0.2765, allocations: 180.8 kB / 441.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.2768, allocations: 87.83 kB / 441.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004371/0.2812, allocations: 2.655 MB / 444.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.2817, allocations: 91.64 kB / 444.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.2817, allocations: 16 kB / 444.3 MB, free: 7.922 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002684/0.282, allocations: 181.7 kB / 444.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.62e-05/0.2821, allocations: 59.61 kB / 444.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.2822, allocations: 56.8 kB / 444.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2822, allocations: 4 kB / 444.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2822, allocations: 4 kB / 444.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2822, allocations: 0 / 444.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.2845, allocations: 1.152 MB / 445.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2845, allocations: 0 / 445.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.2847, allocations: 43.92 kB / 445.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005346/0.2852, allocations: 191.7 kB / 446 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.2852, allocations: 16 kB / 446 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003999/0.2892, allocations: 2.64 MB / 448.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2893, allocations: 0 / 448.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.2912, allocations: 0.8948 MB / 449.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.2913, allocations: 59.67 kB / 449.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.641e-05/0.2914, allocations: 11.98 kB / 449.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.2917, allocations: 39.97 kB / 449.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.493e-05/0.2918, allocations: 39.81 kB / 449.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.2918, allocations: 12 kB / 449.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003539/0.2922, allocations: 303.1 kB / 450 MB, free: 2.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2922, allocations: 0 / 450 MB, free: 2.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007668/0.2929, allocations: 175.7 kB / 450.1 MB, free: 1.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002314/0.2953, allocations: 1.462 MB / 451.6 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.2964, allocations: 0.5566 MB / 452.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2965, allocations: 0 / 452.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.2971, allocations: 383.2 kB / 452.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.2976, allocations: 79.06 kB / 452.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007731/0.3053, allocations: 4.847 MB / 457.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.3056, allocations: 259.4 kB / 457.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000202/0.3058, allocations: 52.55 kB / 457.8 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.3061, allocations: 183.4 kB / 457.9 MB, free: 9.805 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3061, allocations: 0 / 457.9 MB, free: 9.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0465/0.3526, allocations: 12.61 MB / 470.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.14, allocations: 7.938 kB / 470.6 MB, free: 13.45 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.v_out in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv. Warning: Get data of variable opAmp.v_out from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.695099940057844]