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.001233/0.001233, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001306/0.001306, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8829/0.8829, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 318.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.876e-05, allocations: 6.219 kB / 318.5 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.003627/0.003646, allocations: 4.012 MB / 322.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.00557, allocations: 1.164 MB / 323.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.005842, allocations: 11.94 kB / 323.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003709/0.006212, allocations: 142.7 kB / 323.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.006575, allocations: 222.1 kB / 324 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004096/0.006984, allocations: 203.5 kB / 324.2 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006641/0.007648, allocations: 0.7822 MB / 325 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.007934, allocations: 175.1 kB / 325.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.00839, allocations: 435 kB / 325.6 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002805/0.008671, allocations: 243.2 kB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.302e-05/0.008744, allocations: 64 kB / 325.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.13e-05/0.008805, allocations: 64 kB / 326 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.522e-05/0.0089, allocations: 147.4 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.00907, allocations: 239.4 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005853/0.009655, allocations: 0.763 MB / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.009659, allocations: 8 kB / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.00966, allocations: 0 / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.009674, allocations: 0 / 327.1 MB, free: 13.64 MB / 298.7 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.001412/0.01109, allocations: 0.9336 MB / 328 MB, free: 12.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.01113, allocations: 8.922 kB / 328 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.285e-05/0.01121, allocations: 102.7 kB / 328.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/0.0113, allocations: 80.47 kB / 328.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.0117, allocations: 343.6 kB / 328.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.01173, allocations: 41.62 kB / 328.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.01178, allocations: 56.38 kB / 328.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.01253, allocations: 0.7258 MB / 329.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.01254, allocations: 3.938 kB / 329.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.01258, allocations: 27.98 kB / 329.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.01259, allocations: 15.94 kB / 329.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005482/0.01314, allocations: 413 kB / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.01507, allocations: 1.631 MB / 331.5 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005478/0.01562, allocations: 354.7 kB / 331.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/0.01621, allocations: 413.8 kB / 332.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.01623, allocations: 4.328 kB / 332.2 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.01665, allocations: 489.8 kB / 332.7 MB, free: 7.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.903e-06/0.01665, allocations: 0 / 332.7 MB, free: 7.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.001998/0.01865, allocations: 1.098 MB / 333.8 MB, free: 6.645 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.01875, allocations: 243.3 kB / 334 MB, free: 6.352 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.0191, allocations: 437.8 kB / 334.5 MB, free: 5.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.01913, allocations: 41.64 kB / 334.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.01928, allocations: 312.8 kB / 334.8 MB, free: 5.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.907e-05/0.01936, allocations: 146.7 kB / 335 MB, free: 5.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.887e-05/0.01946, allocations: 90.14 kB / 335 MB, free: 5.316 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.01957, allocations: 362.7 kB / 335.4 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.01978, allocations: 148.9 kB / 335.5 MB, free: 4.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.02014, allocations: 0.493 MB / 336 MB, free: 4.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/0.02061, allocations: 443.4 kB / 336.5 MB, free: 3.715 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.02062, allocations: 0 / 336.5 MB, free: 3.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001056/0.02167, allocations: 0.7442 MB / 337.2 MB, free: 2.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.0217, allocations: 8 kB / 337.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.02171, allocations: 8.062 kB / 337.2 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004332/0.02214, allocations: 183.6 kB / 337.4 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.02234, allocations: 87.83 kB / 337.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002755/0.02509, allocations: 2.66 MB / 340.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.02541, allocations: 83.64 kB / 340.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.02543, allocations: 20 kB / 340.3 MB, free: 15.8 MB / 314.7 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.0002082/0.02564, allocations: 173.8 kB / 340.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.0257, allocations: 55.66 kB / 340.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.02588, allocations: 52.88 kB / 340.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.02588, allocations: 4 kB / 340.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.02588, allocations: 0 / 340.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.02589, allocations: 15.92 kB / 340.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.02724, allocations: 1.15 MB / 341.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.02724, allocations: 0 / 341.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.02736, allocations: 43.97 kB / 341.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003413/0.0277, allocations: 187.1 kB / 341.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.02772, allocations: 8 kB / 341.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.03021, allocations: 2.655 MB / 344.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.03021, allocations: 0 / 344.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.03135, allocations: 0.9032 MB / 345.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.03143, allocations: 55.67 kB / 345.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.03147, allocations: 4 kB / 345.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.03166, allocations: 44.03 kB / 345.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.03175, allocations: 35.94 kB / 345.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.03177, allocations: 11.98 kB / 345.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002307/0.032, allocations: 299.2 kB / 345.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.032, allocations: 3.938 kB / 345.9 MB, free: 9.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004796/0.03248, allocations: 187.7 kB / 346.1 MB, free: 9.75 MB / 314.7 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.001331/0.03381, allocations: 1.446 MB / 347.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008908/0.0347, allocations: 0.5646 MB / 348.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.0347, allocations: 3.938 kB / 348.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004187/0.03512, allocations: 374.9 kB / 348.5 MB, free: 7.312 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.0355, allocations: 69.69 kB / 348.6 MB, free: 7.242 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005152/0.04065, allocations: 4.85 MB / 353.4 MB, free: 2.207 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.04084, allocations: 263.3 kB / 353.7 MB, free: 1.922 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001469/0.04099, allocations: 48.55 kB / 353.7 MB, free: 1.871 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.04115, allocations: 180.4 kB / 353.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of SimCode: time 8.71e-07/0.04115, allocations: 0 / 353.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.06676, allocations: 12.72 MB / 366.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.163, allocations: 11.73 kB / 366.6 MB, free: 5.207 MB / 330.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.898106664419174]