Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002106/0.002106, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 47.92 kB / 377.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2993, allocations: 53.35 MB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.006636/0.306, allocations: 4.535 MB / 435.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.3086, allocations: 1.289 MB / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003638/0.3089, allocations: 15.94 kB / 437 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005009/0.3094, allocations: 150.7 kB / 437.2 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004657/0.3099, allocations: 206.2 kB / 437.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006348/0.3105, allocations: 223.6 kB / 437.6 MB, free: 404 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008936/0.3114, allocations: 0.7591 MB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3118, allocations: 191.1 kB / 438.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004388/0.3122, allocations: 306.9 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004401/0.3127, allocations: 330.4 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.144e-05/0.3128, allocations: 64 kB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.3129, allocations: 68 kB / 439.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.3131, allocations: 151.4 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003184/0.3134, allocations: 338.3 kB / 439.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000854/0.3143, allocations: 0.7628 MB / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3143, allocations: 0 / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3143, allocations: 0 / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3143, allocations: 0 / 440.5 MB, free: 13.45 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001788/0.3161, allocations: 0.9577 MB / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3161, allocations: 12.03 kB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.3162, allocations: 102.7 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002902/0.3165, allocations: 92.45 kB / 441.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005862/0.3171, allocations: 356.4 kB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.3171, allocations: 37.69 kB / 442.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.3172, allocations: 64.12 kB / 442.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.3183, allocations: 0.5456 MB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.3183, allocations: 4 kB / 442.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/0.3183, allocations: 20 kB / 442.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.3183, allocations: 12 kB / 442.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008713/0.3192, allocations: 421 kB / 443.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.3223, allocations: 1.782 MB / 444.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000756/0.323, allocations: 354.6 kB / 445.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.324, allocations: 421.1 kB / 445.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.3241, allocations: 4.328 kB / 445.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/0.3246, allocations: 302.2 kB / 446 MB, free: 7.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.904e-06/0.3246, allocations: 0 / 446 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.003498/0.3281, allocations: 1.11 MB / 447.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.3283, allocations: 239.3 kB / 447.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.3288, allocations: 441.9 kB / 447.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/0.3289, allocations: 33.7 kB / 447.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.3291, allocations: 316.8 kB / 448.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3292, allocations: 146.8 kB / 448.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3294, allocations: 94.14 kB / 448.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3295, allocations: 362.7 kB / 448.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.3299, allocations: 144.9 kB / 448.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.3304, allocations: 332.8 kB / 449.1 MB, free: 4.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.3311, allocations: 431.5 kB / 449.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3311, allocations: 4 kB / 449.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001736/0.3329, allocations: 0.7481 MB / 450.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3329, allocations: 8.062 kB / 450.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3329, allocations: 7.938 kB / 450.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006153/0.3335, allocations: 180.7 kB / 450.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.3338, allocations: 87.83 kB / 450.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.3381, allocations: 2.705 MB / 453.3 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004836/0.3386, allocations: 83.66 kB / 453.4 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.3386, allocations: 19.98 kB / 453.4 MB, free: 16 kB / 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.000272/0.3389, allocations: 181.7 kB / 453.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.339, allocations: 47.72 kB / 453.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.3391, allocations: 56.91 kB / 453.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.3391, allocations: 4 kB / 453.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.3391, allocations: 0 / 453.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3391, allocations: 7.984 kB / 453.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002277/0.3413, allocations: 1.226 MB / 454.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3414, allocations: 0 / 454.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.3416, allocations: 51.91 kB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005193/0.3421, allocations: 183.7 kB / 455.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.3421, allocations: 8 kB / 455.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003938/0.346, allocations: 2.682 MB / 457.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.346, allocations: 4.031 kB / 457.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.3479, allocations: 0.9026 MB / 458.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.095e-05/0.348, allocations: 51.59 kB / 458.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/0.3481, allocations: 12 kB / 458.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.3485, allocations: 47.91 kB / 458.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.684e-05/0.3485, allocations: 39.86 kB / 458.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.3486, allocations: 12 kB / 458.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.3489, allocations: 307.1 kB / 459.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3489, allocations: 0 / 459.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006147/0.3495, allocations: 183.6 kB / 459.4 MB, free: 9.84 MB / 366.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.002259/0.3518, allocations: 1.462 MB / 460.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.3529, allocations: 0.5604 MB / 461.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3529, allocations: 0 / 461.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006515/0.3536, allocations: 375.2 kB / 461.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.3541, allocations: 85.88 kB / 461.8 MB, free: 7.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007661/0.3617, allocations: 4.874 MB / 466.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.3622, allocations: 0.8671 MB / 467.6 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.3624, allocations: 60.59 kB / 467.6 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.3627, allocations: 187.4 kB / 467.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3627, allocations: 0 / 467.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0502/0.4129, allocations: 12.59 MB / 480.4 MB, free: 4.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.47, allocations: 11.42 kB / 480.4 MB, free: 4.746 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 16.012156969867647]