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.001099/0.001099, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2743, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007322/0.2817, allocations: 6.074 MB / 414.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.2849, allocations: 1.552 MB / 416.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007419/0.2857, allocations: 16 kB / 416.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004573/0.2862, allocations: 174.2 kB / 416.6 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007083/0.2869, allocations: 289.3 kB / 416.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/0.2878, allocations: 415.3 kB / 417.3 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001247/0.289, allocations: 1.399 MB / 418.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005792/0.2896, allocations: 429.2 kB / 419.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006611/0.2903, allocations: 0.4907 MB / 419.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005543/0.2909, allocations: 0.5796 MB / 420.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.291, allocations: 136 kB / 420.3 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.2913, allocations: 184 kB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2915, allocations: 267.2 kB / 420.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.2919, allocations: 0.5911 MB / 421.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.2931, allocations: 1.544 MB / 422.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2932, allocations: 0 / 422.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2932, allocations: 0 / 422.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.2932, allocations: 0 / 422.9 MB, free: 3.332 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.002827/0.296, allocations: 1.379 MB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.2961, allocations: 8.031 kB / 424.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.2963, allocations: 143.6 kB / 424.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.2966, allocations: 127.5 kB / 424.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008244/0.2974, allocations: 0.5538 MB / 425.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/0.2975, allocations: 62.38 kB / 425.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.2976, allocations: 88.38 kB / 425.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2991, allocations: 0.8586 MB / 426.1 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.2991, allocations: 0 / 426.1 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-05/0.2992, allocations: 36.05 kB / 426.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.2993, allocations: 20 kB / 426.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.3008, allocations: 0.855 MB / 427 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005358/0.3062, allocations: 3.203 MB / 430.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3073, allocations: 0.6794 MB / 430.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006485/0.308, allocations: 426.5 kB / 431.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.339e-05/0.308, allocations: 12.55 kB / 431.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3081, allocations: 51.12 kB / 431.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.354e-06/0.3081, allocations: 0 / 431.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004265/0.3123, allocations: 2.263 MB / 433.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3124, allocations: 60.06 kB / 433.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006563/0.3131, allocations: 0.6057 MB / 434.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.3131, allocations: 41.7 kB / 434.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.3134, allocations: 439.3 kB / 434.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.3136, allocations: 260.2 kB / 435 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.3138, allocations: 154.6 kB / 435.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.314, allocations: 382.8 kB / 435.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.3146, allocations: 325.9 kB / 435.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000698/0.3153, allocations: 472.5 kB / 436.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.3166, allocations: 0.8085 MB / 437.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3166, allocations: 4 kB / 437.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002042/0.3187, allocations: 1.114 MB / 438.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3187, allocations: 8 kB / 438.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3187, allocations: 8.062 kB / 438.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005263/0.3193, allocations: 184.6 kB / 438.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/0.3201, allocations: 203.7 kB / 438.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003403/0.3235, allocations: 2.88 MB / 441.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006426/0.3242, allocations: 36.03 kB / 441.6 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.046e-05/0.3243, allocations: 32 kB / 441.6 MB, free: 20 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: 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.0003527/0.3246, allocations: 249.5 kB / 441.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3248, allocations: 83 kB / 441.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.325, allocations: 95.27 kB / 442 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.325, allocations: 8 kB / 442 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.325, allocations: 0 / 442 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.944e-06/0.325, allocations: 3.984 kB / 442 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.326, allocations: 0.8807 MB / 442.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.326, allocations: 4 kB / 442.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00071/0.3267, allocations: 143.8 kB / 443 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004917/0.3272, allocations: 195.4 kB / 443.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.543e-05/0.3273, allocations: 19.98 kB / 443.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/0.3306, allocations: 2.88 MB / 446.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3306, allocations: 0 / 446.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.3331, allocations: 1.439 MB / 447.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.3333, allocations: 148.1 kB / 447.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.224e-05/0.3334, allocations: 20.25 kB / 447.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.334, allocations: 55.95 kB / 447.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.3341, allocations: 52.53 kB / 447.8 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.171e-05/0.3342, allocations: 23.98 kB / 447.9 MB, free: 9.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004461/0.3346, allocations: 427.1 kB / 448.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3346, allocations: 0 / 448.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007526/0.3354, allocations: 244 kB / 448.5 MB, free: 8.84 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.002756/0.3381, allocations: 1.996 MB / 450.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.3403, allocations: 1.045 MB / 451.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3404, allocations: 0 / 451.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.3417, allocations: 0.6471 MB / 452.2 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007677/0.3425, allocations: 139.2 kB / 452.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.3541, allocations: 7.446 MB / 459.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.3547, allocations: 0.9775 MB / 460.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000451/0.3552, allocations: 97.39 kB / 460.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004214/0.3556, allocations: 323.3 kB / 461.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3556, allocations: 0 / 461.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04573/0.4014, allocations: 19.34 MB / 480.5 MB, free: 8.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.23, allocations: 7.109 kB / 480.5 MB, free: 8.785 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)