Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 67.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.287, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007706/0.2948, allocations: 6.084 MB / 414.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.2983, allocations: 1.548 MB / 416.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004273/0.2987, allocations: 16 kB / 416.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000398/0.2992, allocations: 174.2 kB / 416.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.2998, allocations: 285.3 kB / 416.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008893/0.3007, allocations: 419.3 kB / 417.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.3022, allocations: 1.403 MB / 418.7 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006087/0.3028, allocations: 425.2 kB / 419.1 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006523/0.3035, allocations: 0.4946 MB / 419.6 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006729/0.3042, allocations: 0.5718 MB / 420.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.3043, allocations: 136 kB / 420.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002935/0.3046, allocations: 188 kB / 420.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.3049, allocations: 271.2 kB / 420.8 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005263/0.3054, allocations: 0.5872 MB / 421.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.307, allocations: 1.54 MB / 422.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.307, allocations: 4 kB / 422.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.307, allocations: 0 / 422.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.307, allocations: 4 kB / 422.9 MB, free: 3.34 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002588/0.3096, allocations: 1.409 MB / 424.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3097, allocations: 11.97 kB / 424.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.3099, allocations: 135.6 kB / 424.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000346/0.3102, allocations: 132.2 kB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008021/0.311, allocations: 0.5581 MB / 425.1 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.874e-05/0.3111, allocations: 66.38 kB / 425.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.3113, allocations: 92.38 kB / 425.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3129, allocations: 0.8508 MB / 426.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.3129, allocations: 0 / 426.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.843e-05/0.313, allocations: 36 kB / 426.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.313, allocations: 20 kB / 426.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.3147, allocations: 0.8589 MB / 427.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005472/0.3202, allocations: 3.22 MB / 430.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.3214, allocations: 0.6794 MB / 430.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007264/0.3221, allocations: 428.3 kB / 431.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.318e-05/0.3222, allocations: 12.55 kB / 431.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3222, allocations: 47.12 kB / 431.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.484e-06/0.3222, allocations: 0 / 431.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004618/0.3269, allocations: 2.273 MB / 433.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.3269, allocations: 60.06 kB / 433.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/0.3277, allocations: 0.6057 MB / 434.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.3278, allocations: 41.7 kB / 434.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/0.3281, allocations: 452.3 kB / 434.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.3284, allocations: 277.7 kB / 435.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/0.3286, allocations: 150.6 kB / 435.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.3288, allocations: 386.8 kB / 435.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/0.3295, allocations: 325.9 kB / 436 MB, free: 5.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007561/0.3302, allocations: 476.4 kB / 436.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.3316, allocations: 0.8008 MB / 437.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3317, allocations: 4 kB / 437.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002207/0.3339, allocations: 1.122 MB / 438.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3339, allocations: 4 kB / 438.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3339, allocations: 4 kB / 438.4 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.3345, allocations: 180.7 kB / 438.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008682/0.3354, allocations: 207.8 kB / 438.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.3393, allocations: 2.881 MB / 441.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.34, allocations: 40.11 kB / 441.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/0.34, allocations: 32 kB / 441.7 MB, free: 15.93 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003989/0.3405, allocations: 229.6 kB / 441.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.3406, allocations: 87.47 kB / 442 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001832/0.3408, allocations: 95.25 kB / 442.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3408, allocations: 8 kB / 442.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.3408, allocations: 7.938 kB / 442.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.3408, allocations: 7.984 kB / 442.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.342, allocations: 0.8884 MB / 443 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.342, allocations: 0 / 443 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007105/0.3427, allocations: 147.8 kB / 443.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005089/0.3432, allocations: 183.4 kB / 443.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.3433, allocations: 23.98 kB / 443.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003788/0.3471, allocations: 2.878 MB / 446.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3471, allocations: 4 kB / 446.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.3497, allocations: 1.436 MB / 447.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.3499, allocations: 148.6 kB / 447.8 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.35, allocations: 23.98 kB / 447.8 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005807/0.3506, allocations: 51.91 kB / 447.9 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3507, allocations: 52.58 kB / 447.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.148e-05/0.3508, allocations: 23.98 kB / 448 MB, free: 9.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000505/0.3513, allocations: 431.1 kB / 448.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3513, allocations: 0 / 448.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000786/0.3521, allocations: 243.9 kB / 448.6 MB, free: 8.754 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003005/0.3551, allocations: 2.019 MB / 450.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.3573, allocations: 1.041 MB / 451.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3574, allocations: 0 / 451.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.3587, allocations: 0.6392 MB / 452.3 MB, free: 5.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.3595, allocations: 146 kB / 452.5 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.3713, allocations: 7.471 MB / 459.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000714/0.3721, allocations: 0.9853 MB / 460.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004121/0.3725, allocations: 97.44 kB / 461 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/0.373, allocations: 319.3 kB / 461.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.373, allocations: 0 / 461.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0757/0.4487, allocations: 19.01 MB / 480.3 MB, free: 8.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.63, allocations: 7.641 kB / 480.3 MB, free: 8.98 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[2504]=0.000000 Error: Could not read variable Transistor1.Tr.C.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.Tr.C.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor1.ct.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.ct.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.Tr.C.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.Tr.C.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.ct.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.ct.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! " Variables in the reference:time,C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v Variables in the result:time,C1.v,C2.v,C3.v,C4.v,C5.v